agora inbox for [email protected]help / color / mirror / Atom feed
[PATCH 3/7] cirrus/freebsd: run with more CPUs+RAM and do not repartition 223+ messages / 2 participants [nested] [flat]
* [PATCH 3/7] cirrus/freebsd: run with more CPUs+RAM and do not repartition @ 2022-06-24 05:09 Justin Pryzby <[email protected]> 0 siblings, 0 replies; 223+ messages in thread From: Justin Pryzby @ 2022-06-24 05:09 UTC (permalink / raw) There was some historic problem where tests under freebsd took 8+ minutes (and before 4a288a37f took 15 minutes). This reduces test time from 10min to 3min. 4 CPUs 4 tests https://cirrus-ci.com/task/4880240739614720 4 CPUs 6 tests https://cirrus-ci.com/task/4664440120410112 https://cirrus-ci.com/task/4586784884523008 4 CPUs 8 tests https://cirrus-ci.com/task/5001995491737600 6 CPUs https://cirrus-ci.com/task/6678321684545536 8 CPUs https://cirrus-ci.com/task/6264854121021440 See also: https://www.postgresql.org/message-id/flat/[email protected]#f36c0b1... 8 jobs 7min https://cirrus-ci.com/task/6186376667332608 //-os-only: freebsd --- .cirrus.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 858454a3d08..2ba6b7cc2d8 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -131,11 +131,9 @@ task: name: FreeBSD - 13 - Meson env: - # FreeBSD on GCP is slow when running with larger number of CPUS / - # jobs. Using one more job than cpus seems to work best. - CPUS: 2 - BUILD_JOBS: 3 - TEST_JOBS: 3 + CPUS: 4 + BUILD_JOBS: 4 + TEST_JOBS: 6 CCACHE_DIR: /tmp/ccache_dir CPPFLAGS: -DRELCACHE_FORCE_RELEASE -DCOPY_PARSE_PLAN_TREES -DWRITE_READ_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERAGE_TEST @@ -160,8 +158,6 @@ task: ccache_cache: folder: $CCACHE_DIR - # Work around performance issues due to 32KB block size - repartition_script: src/tools/ci/gcp_freebsd_repartition.sh create_user_script: | pw useradd postgres chown -R postgres:postgres . -- 2.25.1 --O98KdSgI27dgYlM5 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0004-cirrus-freebsd-define-ENFORCE_REGRESSION_TEST_NAME_R.patch" ^ permalink raw reply [nested|flat] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ 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; 223+ 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] 223+ messages in thread
end of thread, other threads:[~2025-08-07 07:58 UTC | newest] Thread overview: 223+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-06-24 05:09 [PATCH 3/7] cirrus/freebsd: run with more CPUs+RAM and do not repartition Justin Pryzby <[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]> 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