Re: Which SET TYPE don't actually require a rewrite

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Which SET TYPE don't actually require a rewrite
Дата
Msg-id 20200721205537.GB25122@momjian.us
обсуждение исходный текст
Ответ на Re: Which SET TYPE don't actually require a rewrite  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Which SET TYPE don't actually require a rewrite
Список pgsql-hackers
On Fri, Jul 17, 2020 at 11:26:56AM -0400, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > As Amit mentions it is also triggered by some store parameter changes. But
> > not all. So looking at it the other way, the part that the end user really
> > cares about it "which ALTER TABLE operations will rewrite the table and
> > which will not". Maybe what we need is a section specifically on this that
> > summarizes all the different ways that it can happen.
> 
> No, what we need is EXPLAIN for DDL ;-).  Trying to keep such
> documentation in sync with the actual code behavior would be impossible.
> (For one thing, some aspects can be affected by extension datatype
> behaviors.)

I know Tom put a wink on that, but I actually do feel that the only
clean way to do this is to give users a way to issue the query in a
non-executing way that will report if a rewrite is going to happen.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Improving psql slash usage help message
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Using Valgrind to detect faulty buffer accesses (no pin or buffer content lock held)