forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd92573a
committed
Add more debugging information when dropping twice pgstats entry
Floris Van Nee has reported a bug in the pgstats facility where a statsentry already dropped would get again dropped. This case should nothappen, still the error generated did not offer any details about thestats entry getting dropped.This commit improves the error message generated to inform about thestats entry kind, database OID, object OID and refcount, which shouldhelp to debug more the problem reported. Bertrand Drouvot has beenindependently able to reach this error path while writing a new feature,and more details about the failure would have been helpful fordebugging.Author: Andres Freund, Bertrand DrouvotDiscussion:https://postgr.es/m/20240505160915.6boysum4f34siqct@awork3.anarazel.deDiscussion:https://postgr.es/m/ZkM30paAD8Cr/Bix@ip-10-97-1-34.eu-west-3.compute.internalBackpatch-through: 151 parent8cfbac1 commitd92573a
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
785 | 785 |
| |
786 | 786 |
| |
787 | 787 |
| |
788 |
| - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
789 | 793 |
| |
790 | 794 |
| |
791 | 795 |
| |
|
0 commit comments
Comments
(0)