On Fri, Sep 25, 2026 at 02:33:57PM +0200, Matthias van de Meent wrote: > Also done. Thanks for the fast replies. > > Attached v3: > > * Add errcode(PROGRAM_LIMIT_EXCEEDED) to the ereports. > * Use pg_add_s16_overflow() to detect the overflows. > This includes changing the type of local numchecks variables to > int16. SetRelationNumChecks's signature is unchanged. > * Move the overflow checks to before StoreRelCheck. > This saves one dirty tuple in catalog tables when that overflow happens.
That looks pretty good here, so applied and backpatched as the consequences of keeping an overflowed counter can be really annoying. -- Michael
signature.asc
Description: PGP signature
