Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e58a944

Browse files
committed
Add comment explaining why RelationOpenSmgr() call is not needed.
1 parent 7eb5428 commit e58a944

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/executor/execMain.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.262 2005/12/02 20:03:40 tgl Exp $
29+
* $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.263 2006/01/07 22:30:43 tgl Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -1002,6 +1002,7 @@ ExecEndPlan(PlanState *planstate, EState *estate)
10021002
!estate->es_into_relation_descriptor->rd_istemp)
10031003
{
10041004
FlushRelationBuffers(estate->es_into_relation_descriptor);
1005+
/* FlushRelationBuffers will have opened rd_smgr */
10051006
smgrimmedsync(estate->es_into_relation_descriptor->rd_smgr);
10061007
}
10071008

0 commit comments

Comments
 (0)