Andres Freund writes:
> Off list Tom commented that suggestion with:
>> An easy alternative fix, of course, is to not call isLockedRefname if
>> we don't have a pstate (or else put the pstate==NULL test inside it).
> I'm not a big fan of that - won't that essentially cause the wrong
> locklevel t
Hi,
Since at least 61e532820824504aa92ad93c427722d3fa9c1632 from 2009,
addRangeTableEntry() relies pstate being != NULL via its call to
isLockedRefname() even though its documentation says:
* If pstate is NULL, we just build an RTE and return it without adding it
* to an rtable list.
I think we