From ef65f6f7a41220d578175a899fdd67b097767669 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 25 Jan 2007 02:17:26 +0000 Subject: Prevent WAL logging when COPY is done in the same transation that created it. Simon Riggs --- src/backend/executor/execMain.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 1de5db0b68b..06bc519dde3 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.283 2007/01/05 22:19:27 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.284 2007/01/25 02:17:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2516,11 +2516,7 @@ CloseIntoRel(QueryDesc *queryDesc) */ if (!estate->es_into_relation_use_wal && !estate->es_into_relation_descriptor->rd_istemp) - { - FlushRelationBuffers(estate->es_into_relation_descriptor); - /* FlushRelationBuffers will have opened rd_smgr */ - smgrimmedsync(estate->es_into_relation_descriptor->rd_smgr); - } + heap_sync(estate->es_into_relation_descriptor); /* close rel, but keep lock until commit */ heap_close(estate->es_into_relation_descriptor, NoLock); -- cgit v1.2.3