aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-06-06 17:59:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-06-06 17:59:45 +0000
commit7340246aee367264083357ed55cd47bc155dea37 (patch)
tree3fd5778a2e50ab08f9484290bfb45cd0e8e3f654 /src/backend/access/gist/gist.c
parentb33c19746cc1e936d8ba5ff836ddab88f76a0d1b (diff)
downloadpostgresql-7340246aee367264083357ed55cd47bc155dea37.tar.gz
postgresql-7340246aee367264083357ed55cd47bc155dea37.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/gist.c')
0 files changed, 0 insertions, 0 deletions