]> granicus.if.org Git - postgresql/commit
Change addRangeTableEntryForRelation() to take a Relation pointer instead
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Apr 2005 16:50:55 +0000 (16:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Apr 2005 16:50:55 +0000 (16:50 +0000)
commit2fdf9e0be6b474e38e516007b5ac5274ecef514d
tree4a5b04ca560ac8ef7e8e76c1dfd3dd840a6084dd
parent45c79a3094a246e94ed6725c7ade0a61bd3fe56a
Change addRangeTableEntryForRelation() to take a Relation pointer instead
of just a relation OID, thereby not having to open the relation for itself.
This actually saves code rather than adding it for most of the existing
callers, which had the rel open already.  The main point though is to be
able to use this rather than plain addRangeTableEntry in setTargetTable,
thus saving one relation_openrv/relation_close cycle for every INSERT,
UPDATE, or DELETE.  Seems to provide a several percent win on simple
INSERTs.
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c
src/backend/commands/view.c
src/backend/parser/analyze.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_relation.c
src/include/parser/parse_relation.h