forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit734c057
committed
Add assertion in pgstat_write_statsfile() about processes allowed
This routine can currently only be called from the postmaster insingle-user mode or the checkpointer, but there was no sanity check tomake sure that this was always the case.This has proved to be useful when hacking the zone (at least to me), tomake sure that the write of the pgstats file happens at shutdown, aswanted by design, in the correct process context.Discussion:https://postgr.es/m/ZnEiqAITL-VgZDoY@paquier.xyz1 parent63909da commit734c057
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1360 | 1360 |
| |
1361 | 1361 |
| |
1362 | 1362 |
| |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1363 | 1366 |
| |
1364 | 1367 |
| |
1365 | 1368 |
| |
|
0 commit comments
Comments
(0)