• Tom Lane's avatar
    Repair some issues with column aliases and RowExpr construction in the · bbd6eb5b
    Tom Lane authored
    presence of dropped columns.  Document the already-presumed fact that
    eref aliases in relation RTEs are supposed to have entries for dropped
    columns; cause the user alias structs to have such entries too, so that
    there's always a one-to-one mapping to the underlying physical attnums.
    Adjust expandRTE() and related code to handle the case where a column
    that is part of a JOIN has been dropped.  Generalize expandRTE()'s API
    so that it can be used in a couple of places that formerly rolled their
    own implementation of the same logic.  Fix ruleutils.c to suppress
    display of aliases for columns that were dropped since the rule was made.
    bbd6eb5b
dependency.c 49.7 KB