postgresql/src/backend
Tom Lane 5935890775 A long time ago, Peter pointed out that ruleutils.c didn't dump simple
constant ORDER/GROUP BY entries properly:
http://archives.postgresql.org/pgsql-hackers/2001-04/msg00457.php
The original solution to that was in fact no good, as demonstrated by
today's report from Martin Pitt:
http://archives.postgresql.org/pgsql-bugs/2008-01/msg00027.php
We can't use the column-number-reference format for a constant that is
a resjunk targetlist entry, a case that was unfortunately not thought of
in the original discussion.  What we can do instead (which did not work
at the time, but does work in 7.3 and up) is to emit the constant with
explicit ::typename decoration, even if it otherwise wouldn't need it.
This is sufficient to keep the parser from thinking it's a column number
reference, and indeed is probably what the user must have done to get
such a thing into the querytree in the first place.
2008-01-06 01:03:16 +00:00
..
access Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX, 2008-01-03 21:23:15 +00:00
bootstrap Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
catalog Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX, 2008-01-03 21:23:15 +00:00
commands Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX, 2008-01-03 21:23:15 +00:00
executor Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
lib Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
libpq Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
main Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nodes Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
optimizer Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
parser Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
po Translation updates 2007-11-29 08:50:36 +00:00
port Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
postmaster Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
regex Fix assorted security-grade bugs in the regex engine. All of these problems 2008-01-03 20:47:55 +00:00
rewrite Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
snowball Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
storage Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tcop Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
tsearch Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
utils A long time ago, Peter pointed out that ruleutils.c didn't dump simple 2008-01-06 01:03:16 +00:00
Makefile Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
nls.mk