Teach CLUSTER to skip writing WAL if not needed (ie, not using archiving)
Tom Lane <tgl@sss.pgh.pa.us>
Teach CLUSTER to skip writing WAL if not needed (ie, not using archiving) --- Simon. Also, code review and cleanup for the previous COPY-no-WAL patches --- Tom.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/perform.sgml | modified | +85 −31 |
| src/backend/access/heap/heapam.c | modified | +44 −31 |
| src/backend/access/heap/tuptoaster.c | modified | +15 −7 |
| src/backend/catalog/index.c | modified | +4 −5 |
| src/backend/commands/cluster.c | modified | +18 −2 |
| src/backend/commands/copy.c | modified | +57 −55 |
| src/backend/executor/execMain.c | modified | +3 −9 |
| src/backend/utils/cache/relcache.c | modified | +43 −32 |
| src/include/access/heapam.h | modified | +1 −4 |
| src/include/access/tuptoaster.h | modified | +3 −2 |
| src/include/utils/relcache.h | modified | +3 −3 |
| src/include/utils/rel.h | modified | +6 −2 |