diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-06-06 17:59:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-06-06 17:59:53 +0000 |
commit | 7521bdaad982637f3478a3f53be368758fbd3138 (patch) | |
tree | 308e3a064f2297d4d33cb115c4d45e2667a4edb5 /src/backend/access/gist/gistproc.c | |
parent | 5766e91752d8e8ea5fe6b7274648ba388859ebfb (diff) | |
download | postgresql-7521bdaad982637f3478a3f53be368758fbd3138.tar.gz postgresql-7521bdaad982637f3478a3f53be368758fbd3138.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/gistproc.c')
0 files changed, 0 insertions, 0 deletions