Fix frontend version of sh_error() in simplehash.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2021 20:43:38 +0000 (16:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 22 Oct 2021 20:43:38 +0000 (16:43 -0400)
commit2e01d050d989d67f491349018a09574427d1d0ba
treeb5455bc753b6918bdf4482218ffe3afb9a7de3e7
parent476006023538730d2291125b883bfe07d03f3dfa
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
src/include/lib/simplehash.h