• Robert Haas's avatar
    Fix reporting of constraint violations for table partitioning. · f1b4c771
    Robert Haas authored
    After a tuple is routed to a partition, it has been converted from the
    root table's row type to the partition's row type.  ExecConstraints
    needs to report the failure using the original tuple and the parent's
    tuple descriptor rather than the ones for the selected partition.
    
    Amit Langote
    f1b4c771
copy.c 133 KB