• Tom Lane's avatar
    Change addRangeTableEntryForRelation() to take a Relation pointer instead · 2fdf9e0b
    Tom Lane authored
    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.
    2fdf9e0b
parse_relation.c 51.1 KB