pgsql: Calculate extraUpdatedCols in query rewriter, not parser.

2020-10-28 Thread Tom Lane
Calculate extraUpdatedCols in query rewriter, not parser. It's unsafe to do this at parse time because addition of generated columns to a table would not invalidate stored rules containing UPDATEs on the table ... but there might now be dependent generated columns that were not there when the rule

pgsql: Calculate extraUpdatedCols in query rewriter, not parser.

2020-10-28 Thread Tom Lane
Calculate extraUpdatedCols in query rewriter, not parser. It's unsafe to do this at parse time because addition of generated columns to a table would not invalidate stored rules containing UPDATEs on the table ... but there might now be dependent generated columns that were not there when the rule

pgsql: Calculate extraUpdatedCols in query rewriter, not parser.

2020-10-28 Thread Tom Lane
Calculate extraUpdatedCols in query rewriter, not parser. It's unsafe to do this at parse time because addition of generated columns to a table would not invalidate stored rules containing UPDATEs on the table ... but there might now be dependent generated columns that were not there when the rule