pgsql: Fix frontend version of sh_error() in simplehash.h. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix frontend version of sh_error() in simplehash.h.
Date
Msg-id E1me1OK-00031q-0F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix frontend version of sh_error() in simplehash.h.

The code does not expect sh_error() to return, but the patch
that made this header usable in frontend didn't get that memo.

While here, plaster unlikely() on the tests that decide whether
to invoke sh_error(), and add our standard copyright notice.

Noted by Andres Freund.  Back-patch to v13 where this frontend
support came in.

Discussion: https://postgr.es/m/0D54435C-1199-4361-9D74-2FBDCF8EA164@anarazel.de

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2e01d050d989d67f491349018a09574427d1d0ba

Modified Files
--------------
src/include/lib/simplehash.h | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix frontend version of sh_error() in simplehash.h.
Next
From: Tom Lane
Date:
Subject: pgsql: In pg_dump, use simplehash.h to look up dumpable objects by OID.