Move the responsibility of writing a "unlogged WAL operation" record from
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Move the responsibility of writing a "unlogged WAL operation" record from heap_sync() to the callers, because heap_sync() is sometimes called even if the operation itself is WAL-logged. This eliminates the bogus unlogged records from CLUSTER that Simon Riggs reported, patch by Fujii Masao.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +1 −7 |
| src/backend/access/heap/rewriteheap.c | modified | +10 −1 |
| src/backend/commands/copy.c | modified | +7 −1 |
| src/backend/commands/tablecmds.c | modified | +7 −1 |
| src/backend/executor/execMain.c | modified | +7 −1 |