Re: Questions about update, delete, ctid... - Mailing list pgsql-general

From Tom Lane
Subject Re: Questions about update, delete, ctid...
Date
Msg-id 13623.1154349988@sss.pgh.pa.us
Whole thread Raw
In response to Re: Questions about update, delete, ctid...  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-general
"Florian G. Pflug" <fgp@phlo.org> writes:
> I don't get it. EPQ would need to reevaluate the plan of the _select_
> belonging to the _cursor_, not the plan of the _update_, to prevent
> the effect outlined above. Are you suggesting to use EPQ for that?

Yes, I don't think you have much choice --- note that SELECT FOR UPDATE
doesn't block self-updates, so assuming that the row is unmodified
doesn't work.

If WHERE CURRENT OF were easy, we'd have done it before now ;-)

            regards, tom lane

pgsql-general by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Questions about update, delete, ctid...
Next
From: Tom Lane
Date:
Subject: Re: Questions about update, delete, ctid...