diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-01-25 02:17:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-01-25 02:17:26 +0000 |
commit | ef65f6f7a41220d578175a899fdd67b097767669 (patch) | |
tree | 47e7592f828af5327f20ea99150f70fabc63aa6c /src/backend/executor/execMain.c | |
parent | 693c85d954890ceb4f0a892cd12e718fb4902128 (diff) | |
download | postgresql-ef65f6f7a41220d578175a899fdd67b097767669.tar.gz postgresql-ef65f6f7a41220d578175a899fdd67b097767669.zip |
Prevent WAL logging when COPY is done in the same transation that
created it.
Simon Riggs
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); |