Alexander Lakhin <exclusion(at)gmail(dot)com> writes:
> Please take a look at the follow-up to [0]. I've prepared a patch to
> assign error codes for errors reached by the following queries:
I'm not on board with these proposed changes to [try_]relation_open.
They're basically band-aids rather than fixes of the root problems.
That is, if someone passes OID 0 to relation_open, that IS an internal
bug; labeling it otherwise is a lie and does nothing to fix the real
problem at the caller level.
A lot of these other proposed changes have the same whiff of blaming
the messenger rather than looking for the root cause.
regards, tom lane