pgsql: Fix race conditions with drop of reused pgstats entries

2024-11-14 Thread Michael Paquier
Fix race conditions with drop of reused pgstats entries This fixes a set of race conditions with cumulative statistics where a shared stats entry could be dropped while it should still be valid in the event when it is reused: an entry may refer to a different object but requires the same hash key.

pgsql: Fix race conditions with drop of reused pgstats entries

2024-11-14 Thread Michael Paquier
Fix race conditions with drop of reused pgstats entries This fixes a set of race conditions with cumulative statistics where a shared stats entry could be dropped while it should still be valid in the event when it is reused: an entry may refer to a different object but requires the same hash key.

pgsql: Fix race conditions with drop of reused pgstats entries

2024-11-14 Thread Michael Paquier
Fix race conditions with drop of reused pgstats entries This fixes a set of race conditions with cumulative statistics where a shared stats entry could be dropped while it should still be valid in the event when it is reused: an entry may refer to a different object but requires the same hash key.

pgsql: Fix race conditions with drop of reused pgstats entries

2024-11-14 Thread Michael Paquier
Fix race conditions with drop of reused pgstats entries This fixes a set of race conditions with cumulative statistics where a shared stats entry could be dropped while it should still be valid in the event when it is reused: an entry may refer to a different object but requires the same hash key.