aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-07 22:30:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-07 22:30:43 +0000
commite58a94470092fb7c1840c73c00b8d9959807f068 (patch)
treee605a9e4f96d1f386e0bbb9787ad28a11f5cce33 /src/backend/executor/execMain.c
parent7eb5428199fddf69b24e03c85db3e8873cde605d (diff)
downloadpostgresql-e58a94470092fb7c1840c73c00b8d9959807f068.tar.gz
postgresql-e58a94470092fb7c1840c73c00b8d9959807f068.zip
Add comment explaining why RelationOpenSmgr() call is not needed.
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 22ba7880ae5..21f3bfc1b00 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.262 2005/12/02 20:03:40 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.263 2006/01/07 22:30:43 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1002,6 +1002,7 @@ ExecEndPlan(PlanState *planstate, EState *estate)
!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);
}