Re: When Update balloons memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: When Update balloons memory
Дата
Msg-id 562709.1639524532@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: When Update balloons memory  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: When Update balloons memory  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-bugs
Peter Geoghegan <pg@bowt.ie> writes:
> On Tue, Dec 14, 2021 at 11:33 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> And, not to be too picky, but does this cope with the case where
>> an indexed column is changed by a BEFORE trigger, not by the
>> query proper?

> No. It's much better to err in the direction of giving the hint,
> rather than not giving the hint. In order for us to make the category
> of error that seems like it might actually be a problem (not giving
> the hint when we should), the BEFORE trigger would have to "undo" an
> explicit change to an updated column.

Uh ... it seems that you are writing as though "giving the hint"
means saying that the column value changed.  That seems quite
confusingly backwards to me, as that is/ought to be the expected
assumption.  Maybe you should invert the flag state while you
are at it.

            regards, tom lane



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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: When Update balloons memory
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: When Update balloons memory