• Tom Lane's avatar
    Some further performance tweaks for planning large inheritance trees that · afcf09dd
    Tom Lane authored
    are mostly excluded by constraints: do the CE test a bit earlier to save
    some adjust_appendrel_attrs() work on excluded children, and arrange to
    use array indexing rather than rt_fetch() to fetch RTEs in the main body
    of the planner.  The latter is something I'd wanted to do for awhile anyway,
    but seeing list_nth_cell() as 35% of the runtime gets one's attention.
    afcf09dd
relation.h 50.2 KB