Convert nullingrels match checks from Asserts to test-and-elog.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 867be9c0738bef591544d39985f886b7d8e99bf0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2023-05-17T15:14:04Z
Releases: 16.0
Convert nullingrels match checks from Asserts to test-and-elog.

It seems like the code that these checks are backstopping may have
a few bugs left in it.  Use a test-and-elog so that the tests are
performed even in non-assert builds, and so that we get something
more informative than "server closed the connection" on failure.

Committed separately with the idea that eventually we'll revert
this.  It might be awhile though.

Discussion: https://postgr.es/m/3014965.1684293045@sss.pgh.pa.us

Files

PathChange+/−
src/backend/optimizer/plan/setrefs.c modified +21 −13

Discussion