Add code to dump contents of free space map into $PGDATA/global/pg_fsm.cache
Tom Lane <tgl@sss.pgh.pa.us>
Add code to dump contents of free space map into $PGDATA/global/pg_fsm.cache at database shutdown, and then load it again at database startup. This preserves our hard-won knowledge of free space across restarts (given an orderly shutdown, that is).
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +4 −1 |
| src/backend/storage/freespace/freespace.c | modified | +358 −79 |
| src/backend/tcop/postgres.c | modified | +10 −2 |
| src/include/storage/freespace.h | modified | +4 −1 |