OSDN Git Service

Avoid WAL-logging individual tuple insertions during CREATE TABLE AS
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jun 2005 18:37:02 +0000 (18:37 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jun 2005 18:37:02 +0000 (18:37 +0000)
commitb95ae32b4178959e8880bd716fb33ec163f61713
tree316fdc43f11fb9f859d4d9721287f85b9b44db68
parent1bfdd1a89321c390201ebe15fe47571f54f9c80a
Avoid WAL-logging individual tuple insertions during CREATE TABLE AS
(a/k/a SELECT INTO).  Instead, flush and fsync the whole relation before
committing.  We do still need the WAL log when PITR is active, however.
Simon Riggs and Tom Lane.
src/backend/access/heap/heapam.c
src/backend/access/heap/hio.c
src/backend/executor/execMain.c
src/backend/executor/execUtils.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c
src/include/access/heapam.h
src/include/access/hio.h
src/include/nodes/execnodes.h