From: Tom Lane Date: Sat, 7 Jan 2006 22:30:43 +0000 (+0000) Subject: Add comment explaining why RelationOpenSmgr() call is not needed. X-Git-Tag: REL8_2_BETA1~1627 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e58a94470092fb7c1840c73c00b8d9959807f068;p=thirdparty%2Fpostgresql.git Add comment explaining why RelationOpenSmgr() call is not needed. --- 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); }