"Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
> How could there be a concurrent update of the _same_ row, when
> I do "select * from bar *for update*".
AFAICT the spec doesn't require one to have written FOR UPDATE
in order to use WHERE CURRENT OF. (In effect, they expect FOR UPDATE
to be the default, which is certainly not a change we're going to
want to make to DECLARE CURSOR.) If we did make that restriction
then we could probably skip the EvalPlanQual mess.
regards, tom lane