aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-06-30 18:11:19 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-06-30 18:11:19 +0000
commit2c0080aaccdf4ca1d1832ef67c2b08447509a994 (patch)
tree1f5fc56aaa137d96f0d945b94b0e030f2d25cc63 /src/backend/commands/dbcommands.c
parent7577975515dd0a2896e3660eb55db0de0544106d (diff)
downloadpostgresql-2c0080aaccdf4ca1d1832ef67c2b08447509a994.tar.gz
postgresql-2c0080aaccdf4ca1d1832ef67c2b08447509a994.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/dbcommands.c')
0 files changed, 0 insertions, 0 deletions