aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-06-06 18:00:09 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-06-06 18:00:09 +0000
commitc760d70af47d648833c03d764255c31b8d554ee3 (patch)
treeca256aeea6f9ce1e8c63e417a818609c8d6feb27 /src/backend/access/gist/gistget.c
parentbef81252ca29ed71299d5fe5c3ade06c65e62802 (diff)
downloadpostgresql-c760d70af47d648833c03d764255c31b8d554ee3.tar.gz
postgresql-c760d70af47d648833c03d764255c31b8d554ee3.zip
Fix pg_get_ruledef() so that negative numeric constants are parenthesized.
This is needed because :: casting binds more tightly than minus, so for example -1::integer is not the same as (-1)::integer, and there are cases where the difference is important. In particular this caused a failure in SELECT DISTINCT ... ORDER BY ... where expressions that should have matched were seen as different by the parser; but I suspect that there could be other cases where failure to parenthesize leads to subtler semantic differences in reloaded rules. Per report from Alexandr Popov.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions