pgstat_already_dropped_verbose.diff
text/x-diff
Filename: pgstat_already_dropped_verbose.diff
Type: text/x-diff
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| src/backend/utils/activity/pgstat_shmem.c | 6 | 1 |
diff --git i/src/backend/utils/activity/pgstat_shmem.c w/src/backend/utils/activity/pgstat_shmem.c
index 91591da3958..17fc1230a84 100644
--- i/src/backend/utils/activity/pgstat_shmem.c
+++ w/src/backend/utils/activity/pgstat_shmem.c
@@ -785,7 +785,12 @@ pgstat_drop_entry_internal(PgStatShared_HashEntry *shent,
* backends to release their references.
*/
if (shent->dropped)
- elog(ERROR, "can only drop stats once");
+ {
+ const PgStat_KindInfo *info = pgstat_get_kind_info(shent->key.kind);
+
+ elog(ERROR, "trying to drop already dropped stats object: %s/%u/%u",
+ info->name, shent->key.dboid, shent->key.objoid);
+ }
shent->dropped = true;
/* release refcount marking entry as not dropped */