Re: When Update balloons memory - Mailing list pgsql-bugs

From Tom Lane
Subject Re: When Update balloons memory
Date
Msg-id 562709.1639524532@sss.pgh.pa.us
Whole thread Raw
In response to Re: When Update balloons memory  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: When Update balloons memory  (Peter Geoghegan <pg@bowt.ie>)
List 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 by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: When Update balloons memory
Next
From: Peter Geoghegan
Date:
Subject: Re: When Update balloons memory