pgsql: Fix overflow with pgstats DSA reference count

2024-06-26 Thread Michael Paquier
Fix overflow with pgstats DSA reference count When pgstats is initialized for a backend, it uses dsa_attach_in_place() without a "segment" provided. Hence, no callback is registered to automatically release the DSA attached once a backend exits. Not doing any cleanup causes the reference count o

pgsql: Fix overflow with pgstats DSA reference count

2024-06-26 Thread Michael Paquier
Fix overflow with pgstats DSA reference count When pgstats is initialized for a backend, it uses dsa_attach_in_place() without a "segment" provided. Hence, no callback is registered to automatically release the DSA attached once a backend exits. Not doing any cleanup causes the reference count o

pgsql: Fix overflow with pgstats DSA reference count

2024-06-26 Thread Michael Paquier
Fix overflow with pgstats DSA reference count When pgstats is initialized for a backend, it uses dsa_attach_in_place() without a "segment" provided. Hence, no callback is registered to automatically release the DSA attached once a backend exits. Not doing any cleanup causes the reference count o