aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/formatting.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-11 18:14:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-11 18:14:23 -0400
commitc6be1f43ab0551a95ec8ac77364e2f8558ae6345 (patch)
tree67286a11ed1951b3b9d7f1b7abdc90dcc2363557 /src/backend/utils/adt/formatting.c
parent8142166162efb193b1fece5cf32afb07fe24e17e (diff)
downloadpostgresql-c6be1f43ab0551a95ec8ac77364e2f8558ae6345.tar.gz
postgresql-c6be1f43ab0551a95ec8ac77364e2f8558ae6345.zip
Make INSERT/UPDATE queries depend on their specific target columns.
We have always created a whole-table dependency for the target relation, but that's not really good enough, as it doesn't prevent scenarios such as dropping an individual target column or altering its type. So we have to create an individual dependency for each target column, as well. Per report from Bill MacArthur of a rule containing UPDATE breaking after such an alteration. Note that this patch doesn't try to make such cases work, only to ensure that the attempted ALTER TABLE throws an error telling you it can't cope with adjusting the rule. This is a long-standing bug, but given the lack of prior reports I'm not going to risk back-patching it. A back-patch wouldn't do anything to fix existing rules' dependency lists, anyway.
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
0 files changed, 0 insertions, 0 deletions