postgresql/src
Tom Lane e6dff0a14b Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of
any implicit casting previously applied to the targetlist item.  This is
reasonable because the implicit cast, by definition, wasn't written by the
user; so we are preserving the expected behavior that ORDER BY items match
textually equivalent tlist items.  The case never arose before because there
couldn't be any implicit casting of a top-level SELECT item before we process
ORDER BY etc.  But now it can arise in the context of aggregates containing
ORDER BY clauses, since the "targetlist" is the already-casted list of
arguments for the aggregate.  The net effect is that the datatype used for
ORDER BY/DISTINCT purposes is the aggregate's declared input type, not that
of the original input column; which is a bit debatable but not horrendous,
and to do otherwise would require major rework that doesn't seem justified.

Per bug #5564 from Daniel Grace.  Back-patch to 9.0 where aggregate ORDER BY
was implemented.
2010-07-18 19:37:57 +00:00
..
backend Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of 2010-07-18 19:37:57 +00:00
bin Fix several problems in pg_dump's handling of SQL/MED objects, notably failure 2010-07-14 21:21:16 +00:00
include tag beta3 2010-07-09 02:43:12 +00:00
interfaces Allow full SSL certificate verification (wherein libpq checks its host name 2010-07-14 17:09:54 +00:00
makefiles Allow for LDFLAGS_SL already having a value in Makefile.aix. 2010-07-06 03:41:02 +00:00
pl Translation updates for 9.0beta3 2010-07-08 21:32:28 +00:00
port pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
template Split the LDFLAGS make variable into two parts: LDFLAGS is now used for 2010-07-05 18:54:38 +00:00
test Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of 2010-07-18 19:37:57 +00:00
timezone pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
tools Mention why one C file fails pgindent. 2010-07-06 19:26:28 +00:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:02 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Rethink the way walreceiver is linked into the backend. Instead than shoving 2010-01-20 09:16:24 +00:00
Makefile.global.in Accept slightly grotty coding in Makefile.global in order to keep the -L 2010-07-06 22:03:05 +00:00
Makefile.shlib Still more third thoughts: when linking shared libraries, LDFLAGS probably 2010-07-06 03:55:33 +00:00
nls-global.mk Avoid error from mkdir if no languages are to be installed 2010-05-13 14:35:28 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00