Write a WAL record whenever we perform an operation without WAL-logging
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Write a WAL record whenever we perform an operation without WAL-logging that would've been WAL-logged if archiving was enabled. If we encounter such records in archive recovery anyway, we know that some data is missing from the log. A WARNING is emitted in that case. Original patch by Fujii Masao, with changes by me.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +7 −1 |
| src/backend/access/nbtree/nbtsort.c | modified | +13 −1 |
| src/backend/access/transam/xlog.c | modified | +45 −1 |
| src/backend/commands/cluster.c | modified | +13 −1 |
| src/backend/commands/tablecmds.c | modified | +18 −1 |
| src/include/access/xlog.h | modified | +2 −1 |
| src/include/catalog/pg_control.h | modified | +2 −1 |