agora inbox for [email protected]help / color / mirror / Atom feed
[PATCH v1] Add more debugging information when dropping twice pgstats entry 217+ messages / 1 participants [nested] [flat]
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
* [PATCH v1] Add more debugging information when dropping twice pgstats entry @ 2025-08-07 07:58 Bertrand Drouvot <[email protected]> 0 siblings, 0 replies; 217+ messages in thread From: Bertrand Drouvot @ 2025-08-07 07:58 UTC (permalink / raw) Dropping twice a pgstats entry should not happen, still the error generated is missing the "generation" counter that has been added in 818119afccd3. This commit adds it as it could be helpful for debugging. --- src/backend/utils/activity/pgstat_shmem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 100.0% src/backend/utils/activity/ diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 53e7d534270..cca4277f234 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -874,11 +874,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent, */ if (shent->dropped) elog(ERROR, - "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u", + "trying to drop stats entry already dropped: kind=%s dboid=%u objid=%" PRIu64 " refcount=%u generation=%u", pgstat_get_kind_info(shent->key.kind)->name, shent->key.dboid, shent->key.objid, - pg_atomic_read_u32(&shent->refcount)); + pg_atomic_read_u32(&shent->refcount), + pg_atomic_read_u32(&shent->generation)); shent->dropped = true; /* release refcount marking entry as not dropped */ -- 2.34.1 --cBfK+H365tIcgH0p-- ^ permalink raw reply [nested|flat] 217+ messages in thread
end of thread, other threads:[~2025-08-07 07:58 UTC | newest] Thread overview: 217+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]> 2025-08-07 07:58 [PATCH v1] Add more debugging information when dropping twice pgstats entry Bertrand Drouvot <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox