Assert there is no duplicated exit callbacks - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Assert there is no duplicated exit callbacks
Date
Msg-id CAJjS0u1YQUx_yPtz+3eSjvR8OMDHh44mUkg_KXg5_d3cT3+r_w@mail.gmail.com
Whole thread Raw
Responses Re: Assert there is no duplicated exit callbacks
List pgsql-hackers
Attached is a patch to assert there is no duplicated exit callbacks.

Along the way, I downgrade the runtime "enough room" check to an
assertion: the callbacks are registered in pretty fixed initialization
code path, thus assertion is good enough to prevent overlook there. If
we don't agree with this, then the duplication check shall also bump
to runtime checks.

Regards,
Qingqing

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Turning off HOT/Cleanup sometimes
Next
From: Heikki Linnakangas
Date:
Subject: Re: TAP tests of pg_rewind not stopping servers used for the tests