postgresql/src/test/regress/expected
Tom Lane 670a6c7a22 Fix grammar for subscripting or field selection from a sub-SELECT result.
Such cases should work, but the grammar failed to accept them because of
our ancient precedence hacks to convince bison that extra parentheses
around a sub-SELECT in an expression are unambiguous.  (Formally, they
*are* ambiguous, but we don't especially care whether they're treated as
part of the sub-SELECT or part of the expression.  Bison cares, though.)
Fix by adding a redundant-looking production for this case.

This is a fine example of why fixing shift/reduce conflicts via
precedence declarations is more dangerous than it looks: you can easily
cause the parser to reject cases that should work.

This has been wrong since commit 3db4056e22
or maybe before, and apparently some people have been working around it
by inserting no-op casts.  That method introduces a dump/reload hazard,
as illustrated in bug #7838 from Jan Mate.  Hence, back-patch to all
active branches.
2013-01-30 14:17:48 -05:00
..
.gitignore
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 Refactor ALTER some-obj RENAME implementation 2013-01-21 12:06:41 -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
case.out
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
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
comments.out
conversion.out
copy2.out Issue ERROR if FREEZE mode can't be honored by COPY 2013-01-26 13:33:24 -05: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
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 Fix ruleutils to cope with conflicts from adding/dropping/renaming columns. 2012-12-31 15:13:26 -05:00
date.out
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 Allow adding values to an enum type created in the current transaction. 2012-12-01 14:27:30 -05: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
euc_jp.out
euc_kr.out
euc_tw.out
event_trigger.out Update comments and output for event_trigger regression test. 2013-01-23 06:49:30 -05: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
geometry_2.out
geometry.out
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
hs_standby_check.out
hs_standby_disallowed.out
hs_standby_functions.out
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 Make LATERAL implicit for functions in FROM. 2013-01-26 16:18:42 -05: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
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
name.out
namespace.out Fix parse location tracking for lists that can be empty. 2012-10-04 17:15:29 -04:00
numeric_big.out
numeric.out Add some enumeration commas, for consistency 2012-02-24 11:04:45 +02:00
numerology_1.out
numerology.out
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
plancache.out Change plan caching to honor, not resist, changes in search_path. 2013-01-25 14:14:41 -05:00
plpgsql.out Improve pl/pgsql to support composite-type expressions in RETURN. 2012-12-06 23:09:52 -05: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
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
rangefuncs.out Make LATERAL implicit for functions in FROM. 2013-01-26 16:18:42 -05:00
rangetypes.out Make some messages more consistent in style 2012-12-21 00:10:46 -05:00
regex.out Re-implement extraction of fixed prefixes from regular expressions. 2012-07-10 14:54:37 -04:00
reltime.out
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
select_distinct.out
select_having_1.out
select_having_2.out
select_having.out
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
stats.out Prevent index-only scans in stats regression test. 2011-10-08 23:45:58 -04:00
strings.out
subselect.out Fix grammar for subscripting or field selection from a sub-SELECT result. 2013-01-30 14:17:48 -05:00
temp.out Reduce messages about implicit indexes and sequences to DEBUG1. 2012-07-04 20:35:29 -04:00
text.out Fix concat() and format() to handle VARIADIC-labeled arguments correctly. 2013-01-25 00:19:56 -05:00
time.out
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
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 Support automatically-updatable views. 2012-12-08 18:26:21 -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
txid.out
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
updatable_views.out Support automatically-updatable views. 2012-12-08 18:26:21 -05:00
update.out Regression tests for TOAST. 2011-04-25 09:48:10 -04:00
uuid.out
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
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
xmlmap.out Avoid extra newlines in XML mapping in table forest mode 2012-07-12 23:52:50 +03:00