forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit001a537
committed
Improve comment about dropped entries in pgstat.c
pgstat_write_statsfile() discards any entries marked as dropped frombeing written to the stats file at shutdown, and also included anassertion based on the same condition.The intention of the assertion is to track that no pgstats entriesshould be left around as terminating backends should drop any entriesthey still hold references on before the stats file is written by thecheckpointer, and it not worth taking down the server in this case ifthere is a bug making that possible.Let's improve the comment of this area to document clearly what'sintended.Based on a discussion with Bertrand Drouvot and Anton A. Melnikov.Author: Bertrand DrouvotDiscussion:https://postgr.es/m/a13e8cdf-b97a-4ecb-8f42-aaa367974e29@postgrespro.ruBackpatch-through: 151 parent2d0152d commit001a537
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1655 | 1655 |
| |
1656 | 1656 |
| |
1657 | 1657 |
| |
1658 |
| - | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1659 | 1667 |
| |
1660 | 1668 |
| |
1661 | 1669 |
| |
|
0 commit comments
Comments
(0)