aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-06-30 18:10:37 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-06-30 18:10:37 +0000
commitff06716e3dafc73820ed38f6eea2c6d6dcae7fd9 (patch)
tree9d5b56639a65bbb8c1c6adef5907a71da5454cc9 /src/backend/commands/tablecmds.c
parent0c3a0bcaa40a68261858851c8d1daa64aa21fc33 (diff)
downloadpostgresql-ff06716e3dafc73820ed38f6eea2c6d6dcae7fd9.tar.gz
postgresql-ff06716e3dafc73820ed38f6eea2c6d6dcae7fd9.zip
stringToNode() and deparse_expression_pretty() crash on invalid input,
but we have nevertheless exposed them to users via pg_get_expr(). It would be too much maintenance effort to rigorously check the input, so put a hack in place instead to restrict pg_get_expr() so that the argument must come from one of the system catalog columns known to contain valid expressions. Per report from Rushabh Lathia. Backpatch to 7.4 which is the oldest supported version at the moment.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions