postgresql/src/test/regress/expected
Tom Lane d3237e04ca Fix SELECT DISTINCT with index-optimized MIN/MAX on inheritance trees.
In a query such as "SELECT DISTINCT min(x) FROM tab", the DISTINCT is
pretty useless (there being only one output row), but nonetheless it
shouldn't fail.  But it could fail if "tab" is an inheritance parent,
because planagg.c's code for fixing up equivalence classes after making the
index-optimized MIN/MAX transformation wasn't prepared to find child-table
versions of the aggregate expression.  The least ugly fix seems to be
to add an option to mutate_eclass_expressions() to skip child-table
equivalence class members, which aren't used anymore at this stage of
planning so it's not really necessary to fix them.  Since child members
are ignored in many cases already, it seems plausible for
mutate_eclass_expressions() to have an option to ignore them too.

Per bug #7703 from Maxim Boguk.

Back-patch to 9.1.  Although the same code exists before that, it cannot
encounter child-table aggregates AFAICS, because the index optimization
transformation cannot succeed on inheritance trees before 9.1 (for lack
of MergeAppend).
2012-11-26 12:57:58 -05:00
..
.gitignore Add a SECURITY LABEL command. 2010-09-27 20:55:27 -04:00
abstime.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
advisory_lock.out Add transaction-level advisory locks. 2011-02-18 14:05:12 +09:00
aggregates.out Fix SELECT DISTINCT with index-optimized MIN/MAX on inheritance trees. 2012-11-26 12:57:58 -05:00
alter_generic.out Remove collations from generic ALTER test 2012-10-01 10:57:58 -03:00
alter_table.out Fix handling of inherited check constraints in ALTER COLUMN TYPE. 2012-11-05 13:36:16 -05:00
arrays.out Add array_remove() and array_replace() functions. 2012-07-11 13:59:35 -04:00
bit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bitmapops.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
boolean.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
box.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
btree_index.out Fix breakage of bitmap scan plan creation for special index operators such 2008-11-20 19:52:54 +00:00
case.out Adjust constant-folding of CASE expressions so that the simple comparison 2005-02-02 21:49:09 +00:00
char_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
char_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
char.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
circle.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
cluster.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
collate.linux.utf8.out Update expected/collate.linux.utf8.out for recent plpgsql changes. 2012-02-18 18:08:02 -05:00
collate.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
combocid.out Avoid incrementing the CommandCounter when CommandCounterIncrement is called 2007-11-30 21:22:54 +00:00
comments.out Implement nested block comments in the backend and in psql. 2000-07-14 15:43:57 +00:00
conversion.out Support hex-string input and output for type BYTEA. 2009-08-04 16:08:37 +00:00
copy2.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
copyselect.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
create_aggregate.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_cast.out Improve psql's tabular display of wrapped-around data by inserting markers 2009-11-22 05:20:41 +00:00
create_function_3.out Remove whitespace from end of lines 2012-05-15 22:19:41 +03:00
create_index.out Fix planning of btree index scans using ScalarArrayOpExpr quals. 2012-09-18 12:20:34 -04:00
create_misc.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_operator.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_table_like.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
create_table.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
create_type.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_view.out Improve ruleutils.c's heuristics for dealing with rangetable aliases. 2012-09-21 19:03:10 -04:00
date.out Extend the date type to support infinity and -infinity, analogously to 2008-10-14 17:12:33 +00:00
delete.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
dependency.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
domain.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
drop_if_exists.out Fix DROP OPERATOR FAMILY IF EXISTS. 2011-10-21 09:12:23 -04:00
enum.out Minor corrections for ALTER TYPE ADD VALUE IF NOT EXISTS patch. 2012-09-22 18:35:22 -04:00
errors.out Be more clear when a new column name collides with a system column name. 2012-01-26 12:44:30 -05:00
euc_cn.out Fixes for char_length() change. 2000-03-16 11:55:43 +00:00
euc_jp.out Fix for drop db message format changes 2000-10-27 02:25:34 +00:00
euc_kr.out Fixes for char_length() change. 2000-03-16 11:55:43 +00:00
euc_tw.out Fixes for char_length() change. 2000-03-16 11:55:43 +00:00
event_trigger.out Make new event trigger facility actually do something. 2012-07-20 11:39:01 -04:00
float4-exp-three-digits.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
float4.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
float8-exp-three-digits-win32.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8-small-is-zero_1.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8-small-is-zero.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
float8.out Revert "Add some regression test cases for denormalized float8 input." 2012-02-04 15:52:09 -05:00
foreign_data.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
foreign_key.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
functional_deps.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
geometry_1.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
geometry_2.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
geometry.out Rewrite the planner's handling of materialized plan types so that there is 2009-09-12 22:12:09 +00:00
guc.out Silently ignore any nonexistent schemas that are listed in search_path. 2012-04-11 12:02:50 -04:00
hash_index.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
horology.out On second thought, we'd better just drop these tests altogether. 2011-11-06 20:12:20 -05:00
hs_standby_allowed.out Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_check.out Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_disallowed.out Update standbycheck test output with new ERROR message changes. No changes 2010-05-02 12:28:43 +00:00
hs_standby_functions.out Update standbycheck test output with new ERROR message changes. No changes 2010-05-02 12:28:43 +00:00
inet.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
inherit.out Improve ruleutils.c's heuristics for dealing with rangetable aliases. 2012-09-21 19:03:10 -04:00
insert.out When a row fails a not-null constraint, show row's contents in errdetail. 2011-11-29 18:29:18 -05:00
int2.out Improve handling of INT_MIN / -1 and related cases. 2012-11-19 12:24:25 -05:00
int4.out Improve handling of INT_MIN / -1 and related cases. 2012-11-19 12:24:25 -05:00
int8-exp-three-digits.out Improve handling of INT_MIN / -1 and related cases. 2012-11-19 12:24:25 -05:00
int8.out Improve handling of INT_MIN / -1 and related cases. 2012-11-19 12:24:25 -05:00
interval.out Fix bugs with parsing signed hh:mm and hh:mm:ss fields in interval input. 2012-08-03 17:40:43 -04:00
join.out Fix planning of non-strict equivalence clauses above outer joins. 2012-10-18 12:30:10 -04:00
json.out Revisit error message details for JSON input parsing. 2012-06-13 19:43:35 -04:00
limit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
lseg.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
macaddr.out Add bitwise AND, OR, and NOT operators for macaddr data type. 2012-01-19 15:25:14 -05:00
money.out Add casts from int4 and int8 to numeric. 2011-04-05 09:35:43 -04:00
mule_internal.out Fixes for char_length() change. 2000-03-16 11:55:43 +00:00
name.out Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
namespace.out Fix parse location tracking for lists that can be empty. 2012-10-04 17:15:29 -04:00
numeric_big.out Update numeric_big regress test for 7.0. This has apparently been 2000-03-30 07:13:20 +00:00
numeric.out Add some enumeration commas, for consistency 2012-02-24 11:04:45 +02:00
numerology_1.out Remove the special cases to prevent minus-zero results in float4 and float8 2009-02-18 19:23:26 +00:00
numerology.out Remove the special cases to prevent minus-zero results in float4 and float8 2009-02-18 19:23:26 +00:00
oid.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
oidjoins.out Update oidjoins regression test to match git HEAD. 2011-11-14 20:28:38 -05:00
opr_sanity.out Add SP-GiST support for range types. 2012-08-16 14:30:45 +03:00
path.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
plancache.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
plpgsql.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
point.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
polygon.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
polymorphism.out Make DROP FUNCTION hint more informative. 2012-06-26 13:33:23 -04:00
portals_p2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
portals.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
prepare.out Improve psql's tabular display of wrapped-around data by inserting markers 2009-11-22 05:20:41 +00:00
prepared_xacts_1.out Fix a bug with SSI and prepared transactions: 2011-07-07 18:12:15 +03:00
prepared_xacts.out Adjust regression tests for error message change 2011-08-15 17:27:10 +03:00
privileges.out Fix cascading privilege revoke to notice when privileges are still held. 2012-08-23 17:25:10 -04:00
random.out Improve random regression tests to fail less frequently. 2004-03-15 15:46:25 +00:00
rangefuncs.out Implement SQL-standard LATERAL subqueries. 2012-08-07 19:02:54 -04:00
rangetypes.out Add SP-GiST support for range types. 2012-08-16 14:30:45 +03:00
regex.out Re-implement extraction of fixed prefixes from regular expressions. 2012-07-10 14:54:37 -04:00
reltime.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
returning.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
rowtypes.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
rules.out When converting a table to a view, remove its system columns. 2012-10-24 13:39:37 -04:00
sanity_check.out Add SP-GiST support for range types. 2012-08-16 14:30:45 +03:00
select_distinct_on.out Fix assertion failure when a SELECT DISTINCT ON expression is volatile. 2009-09-12 00:04:59 +00:00
select_distinct.out Alter some gratuitous uses of "ANSI" when "SQL standard" might have been 2009-07-11 21:15:32 +00:00
select_having_1.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
select_having_2.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
select_having.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
select_implicit_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_implicit_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_implicit.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
select_into.out Restructure SELECT INTO's parsetree representation into CreateTableAsStmt. 2012-03-19 21:38:12 -04:00
select_views_1.out Improve ruleutils.c's heuristics for dealing with rangetable aliases. 2012-09-21 19:03:10 -04:00
select_views.out Improve ruleutils.c's heuristics for dealing with rangetable aliases. 2012-09-21 19:03:10 -04:00
select.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
sequence_1.out Fix longstanding crash-safety bug with newly-created-or-reset sequences. 2012-07-25 17:42:23 -04:00
sequence.out Fix longstanding crash-safety bug with newly-created-or-reset sequences. 2012-07-25 17:42:23 -04:00
sql_ascii.out Fixes for char_length() change. 2000-03-16 11:55:43 +00:00
stats.out Prevent index-only scans in stats regression test. 2011-10-08 23:45:58 -04:00
strings.out Rewrite LIKE's %-followed-by-_ optimization so it really works (this time 2010-05-28 17:35:23 +00:00
subselect.out Fix cross-type case in partial row matching for hashed subplans. 2012-10-11 12:22:13 -04:00
temp.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
text.out Message style improvements 2011-07-08 07:37:04 +03:00
time.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
timestamp.out Fix to_char(), to_date(), and to_timestamp() to handle negative/BC 2012-08-07 13:34:44 -04:00
timestamptz.out Fix to_char(), to_date(), and to_timestamp() to handle negative/BC 2012-08-07 13:34:44 -04:00
timetz.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
tinterval.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
transactions.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
triggers.out Throw error if expiring tuple is again updated or deleted. 2012-10-26 14:55:36 -05:00
truncate.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
tsdicts.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
tsearch.out Fix gincostestimate to handle ScalarArrayOpExpr reasonably. 2011-12-20 19:57:34 -05:00
tstypes.out Extend GIN to support partial-match searches, and extend tsquery to support 2008-05-16 16:31:02 +00:00
txid.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00:00
type_sanity.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05:00
typed_table.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
union.out Implement SQL-standard LATERAL subqueries. 2012-08-07 19:02:54 -04:00
update.out Regression tests for TOAST. 2011-04-25 09:48:10 -04:00
uuid.out Improve unique-constraint-violation error messages to include the exact 2009-08-01 19:59:41 +00:00
vacuum.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
varchar_1.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
varchar_2.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
varchar.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
window.out Fix case of window function + aggregate + GROUP BY expression. 2012-09-13 11:32:25 -04:00
with.out Fix oversight in new code for printing rangetable aliases. 2012-10-12 16:14:43 -04:00
without_oid.out Combine cmin and cmax fields of HeapTupleHeaders into a single field, by 2007-02-09 03:35:35 +00:00
xml_1.out Prevent access to external files/URLs via XML entity references. 2012-08-14 18:31:16 -04:00
xml.out Prevent access to external files/URLs via XML entity references. 2012-08-14 18:31:16 -04:00
xmlmap_1.out Regression test for XML mapping functionality 2009-07-02 07:03:18 +00:00
xmlmap.out Avoid extra newlines in XML mapping in table forest mode 2012-07-12 23:52:50 +03:00