postgresql/src/test/regress/sql
Tom Lane fba999cb2c 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:49 +00:00
..
abstime.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
aggregates.sql Allow ORDER BY/GROUP BY/etc items to match targetlist items regardless of 2010-07-18 19:37:49 +00:00
alter_table.sql DROP IF EXISTS for columns and constraints. Andres Freund. 2009-07-20 02:42:28 +00:00
arrays.sql Fix ExecEvalArrayRef to pass down the old value of the array element or slice 2010-02-18 18:41:47 +00:00
bit.sql Add get_bit/set_bit functions for bit strings, paralleling those for bytea, 2010-01-25 20:55:32 +00:00
bitmapops.sql Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
boolean.sql Accept 'on' and 'off' as input for boolean data type, unifying the syntax 2009-03-09 14:34:35 +00:00
box.sql Rename contains/contained-by operators to @> and <@, per discussion that 2006-09-10 00:29:35 +00:00
btree_index.sql Fix breakage of bitmap scan plan creation for special index operators such 2008-11-20 19:52:54 +00:00
case.sql Adjust constant-folding of CASE expressions so that the simple comparison 2005-02-02 21:49:09 +00:00
char.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
circle.sql Support ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST 2007-01-09 02:14:16 +00:00
cluster.sql Fix timing-sensitive regression test result I just created :-( --- the 2010-02-03 03:21:25 +00:00
combocid.sql Avoid incrementing the CommandCounter when CommandCounterIncrement is called 2007-11-30 21:22:54 +00:00
comments.sql Implement nested block comments in the backend and in psql. 2000-07-14 15:43:57 +00:00
conversion.sql Support hex-string input and output for type BYTEA. 2009-08-04 16:08:37 +00:00
copy2.sql Stamp HEAD as 9.0devel, and update various places that were referring to 8.5 2010-02-17 04:19:41 +00:00
copyselect.sql Teach the system how to use hashing for UNION. (INTERSECT/EXCEPT will follow, 2008-08-07 01:11:52 +00:00
create_aggregate.sql Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
create_cast.sql Add test case for CREATE CAST. 2008-10-31 09:17:17 +00:00
create_index.sql Add point_ops opclass for GiST. 2010-01-14 16:31:09 +00:00
create_misc.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
create_operator.sql Attached is a patch implementing factorial(), returning numeric. Points 2003-12-01 21:52:38 +00:00
create_table.sql Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
create_type.sql Flip the default typispreferred setting from true to false. This affects 2008-07-30 19:35:13 +00:00
create_view.sql Allow CREATE OR REPLACE VIEW to add columns to the _end_ of the view. 2008-12-06 23:22:46 +00:00
date.sql Extend the date type to support infinity and -infinity, analogously to 2008-10-14 17:12:33 +00:00
delete.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
dependency.sql Create a separate grantable privilege for TRUNCATE, rather than having it be 2008-09-08 00:47:41 +00:00
domain.sql Fix select_common_type() so that it can select a domain type, if all inputs 2007-11-26 16:46:51 +00:00
drop_if_exists.sql DROP IF EXISTS for ROLE/USER/GROUP 2006-02-04 19:06:47 +00:00
drop.sql Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
enum.sql Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
errors.sql Add a regression test to verify that the stack depth checker actually 2005-02-11 22:15:12 +00:00
euc_cn.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
euc_jp.sql From: t-ishii@sra.co.jp 1998-04-27 17:10:50 +00:00
euc_kr.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
euc_tw.sql Add missing mb files. 1999-02-02 19:04:43 +00:00
float4.sql Insert a hack into get_float8_nan (both core and ecpg copies) to deal with 2010-02-27 21:53:21 +00:00
float8.sql Insert a hack into get_float8_nan (both core and ecpg copies) to deal with 2010-02-27 21:53:21 +00:00
foreign_data.sql Avoid using trivial usernames in foreign_data regression test. 2009-10-14 23:36:43 +00:00
foreign_key.sql Refactor the handling of the various DropStmt variants so that when multiple 2008-06-14 18:04:34 +00:00
geometry.sql Stop a few regression tests from needlessly disabling GEQO. This was 2007-05-29 04:17:08 +00:00
guc.sql Replace the pg_listener-based LISTEN/NOTIFY mechanism with an in-memory queue. 2010-02-16 22:34:57 +00:00
hash_index.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
horology.sql Make to_timestamp and friends skip leading spaces before an integer field, 2009-06-22 17:54:30 +00:00
hs_primary_extremes.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_primary_setup.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_allowed.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_check.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_disallowed.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_functions.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
inet.sql Fix incorrect addition, subtraction, and overflow checking in new 2006-02-11 20:39:59 +00:00
inherit.sql The particular table names used in the new inheritance regression test are 2010-02-02 18:16:10 +00:00
insert.sql A few regression tests for VALUES, from Gavin Sherry. 2006-08-03 14:54:44 +00:00
int2.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
int4.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
int8.sql Remove some unportable tests 2008-10-05 18:56:09 +00:00
interval.sql Change AdjustIntervalForTypmod to not discard higher-order field values on the 2009-06-01 23:55:15 +00:00
join.sql Fix oversight in join removal patch: we have to delete the removed relation 2010-05-23 16:34:38 +00:00
limit.sql Fix parameter recalculation for Limit nodes: during a ReScan call we must 2007-05-17 19:35:08 +00:00
lseg.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
macaddr.sql Add regression test for macaddr type. Enhance documentation about accepted 2008-10-03 15:37:18 +00:00
money.sql Add regression tests for MONEY type. 2007-11-24 19:49:23 +00:00
mule_internal.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
name.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
namespace.sql Add CREATE TRIGGER, CREATE INDEX, and CREATE SEQUENCE to the list of 2004-01-11 04:58:17 +00:00
numeric_big.sql Update numeric_big regress test for 7.0. This has apparently been 2000-03-30 07:13:20 +00:00
numeric.sql Support EEEE (scientific notation) in to_char(). 2009-08-10 18:29:27 +00:00
numerology.sql Improve SELECT DISTINCT to consider hash aggregation, as well as sort/uniq, 2008-08-05 02:43:18 +00:00
oid.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
oidjoins.sql Update oidjoins regression test for 9.0. 2010-03-14 04:17:54 +00:00
opr_sanity.sql Add some opr_sanity checks that the lengths of the various argument-info 2009-11-29 18:53:54 +00:00
path.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
plancache.sql Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached 2007-11-30 18:38:34 +00:00
plpgsql.sql Fix thinko in tok_is_keyword(): it was looking at the wrong union variant 2010-06-25 16:40:13 +00:00
point.sql Add point_ops opclass for GiST. 2010-01-14 16:31:09 +00:00
polygon.sql Correct calculations of overlap and contains operations over polygons. 2009-07-28 09:48:00 +00:00
polymorphism.sql Change the notation for calling functions with named parameters from 2010-05-30 18:10:41 +00:00
portals_p2.sql Partial indexes work again, courtesy of Martijn van Oosterhout. 2001-07-16 05:07:00 +00:00
portals.sql Ensure that a cursor has an immutable snapshot throughout its lifespan. 2009-10-02 17:57:30 +00:00
prepare.sql Don't refer to the database name "regression" inside the regression test 2008-07-03 16:01:10 +00:00
prepared_xacts.sql Change the default value of max_prepared_transactions to zero, and add 2009-04-23 00:23:46 +00:00
privileges.sql Additional fixes for large object access control. 2009-12-14 00:39:11 +00:00
random.sql Improve random regression tests to fail less frequently. 2004-03-15 15:46:25 +00:00
rangefuncs.sql Make NestLoop plan nodes pass outer-relation variables into their inner 2010-07-12 17:01:06 +00:00
reltime.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
returning.sql Apply a simple solution to the problem of making INSERT/UPDATE/DELETE 2006-09-02 17:06:52 +00:00
rowtypes.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
rules.sql Fix crash if a DROP is attempted on an internally-dependent object. 2009-09-22 15:46:35 +00:00
sanity_check.sql Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
select_distinct_on.sql Fix assertion failure when a SELECT DISTINCT ON expression is volatile. 2009-09-12 00:04:59 +00:00
select_distinct.sql Alter some gratuitous uses of "ANSI" when "SQL standard" might have been 2009-07-11 21:15:32 +00:00
select_having.sql Make the behavior of HAVING without GROUP BY conform to the SQL spec. 2005-03-10 23:21:26 +00:00
select_implicit.sql Alter regression test cases that rely on the sort order of "aa". Some 2009-01-19 13:38:47 +00:00
select_into.sql Remove FROM warning by fixing query. 2000-06-04 17:52:54 +00:00
select_views.sql Clean up header for uniform appearance throughout tests. 2000-01-06 06:41:55 +00:00
select.sql Fix equivclass.c's not-quite-right strategy for handling X=X clauses. 2009-09-29 01:20:34 +00:00
sequence.sql Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a 2008-05-16 23:36:05 +00:00
sql_ascii.sql Add SQL_ASCII encoding test case 2000-03-06 01:29:54 +00:00
stats.sql Simplify and rename some GUC variables, per various recent discussions: 2007-09-24 03:12:23 +00:00
strings.sql Rewrite LIKE's %-followed-by-_ optimization so it really works (this time 2010-05-28 17:35:23 +00:00
subselect.sql Fix "cannot handle unplanned sub-select" error that can occur when a 2010-07-08 00:14:04 +00:00
temp.sql Don't refer to the database name "regression" inside the regression test 2008-07-03 16:01:10 +00:00
text.sql Fix up text concatenation so that it accepts all the reasonable cases that 2007-06-06 23:00:50 +00:00
time.sql Please find attached two patches for documentation and regression tests 2006-07-06 01:46:38 +00:00
timestamp.sql Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as 2009-03-22 01:12:32 +00:00
timestamptz.sql Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as 2009-03-22 01:12:32 +00:00
timetz.sql Please find attached two patches for documentation and regression tests 2006-07-06 01:46:38 +00:00
tinterval.sql Stop a few regression tests from needlessly disabling GEQO. This was 2007-05-29 04:17:08 +00:00
transactions.sql Insert ORDER BY into a few regression test queries that now have unstable 2007-06-09 17:24:46 +00:00
triggers.sql Adjust psql to use pg_get_triggerdef(pretty=true) to remove extra ()'s 2010-01-21 06:11:46 +00:00
truncate.sql Add ONLY support to LOCK and TRUNCATE. By default, these commands are now 2009-01-12 08:54:27 +00:00
tsdicts.sql Add prefix support for synonym dictionary 2009-08-14 14:53:20 +00:00
tsearch.sql Modify the built-in text search parser to handle URLs more nearly according 2010-04-28 02:04:16 +00:00
tstypes.sql Extend GIN to support partial-match searches, and extend tsquery to support 2008-05-16 16:31:02 +00:00
txid.sql Migrate the former contrib/txid module into core. This will make it easier 2007-10-13 23:06:28 +00:00
type_sanity.sql Establish the rule that array types should have the same typdelim as their 2008-09-25 03:28:56 +00:00
typed_table.sql Type table feature 2010-01-28 23:21:13 +00:00
union.sql Avoid a premature coercion failure in transformSetOperationTree() when 2009-12-16 22:24:13 +00:00
update.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
uuid.sql Rewrite uuid input and output routines to avoid dependency on the 2007-01-31 19:33:54 +00:00
vacuum.sql Remove old-style VACUUM FULL (which was known for a little while as 2010-02-08 04:33:55 +00:00
varchar.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
window.sql Extend the set of frame options supported for window functions. 2010-02-12 17:33:21 +00:00
with.sql Fix bug with WITH RECURSIVE immediately inside WITH RECURSIVE. 99% of the 2009-09-09 03:32:52 +00:00
without_oid.sql Combine cmin and cmax fields of HeapTupleHeaders into a single field, by 2007-02-09 03:35:35 +00:00
xml.sql Fix xmlattribute escaping XML special characters twice (bug #4822). 2009-06-09 22:00:57 +00:00
xmlmap.sql Regression test for XML mapping functionality 2009-07-02 07:03:18 +00:00