postgresql/src/test/regress/expected
Tom Lane 9dbf2b7d75 Restructure SELECT INTO's parsetree representation into CreateTableAsStmt.
Making this operation look like a utility statement seems generally a good
idea, and particularly so in light of the desire to provide command
triggers for utility statements.  The original choice of representing it as
SELECT with an IntoClause appendage had metastasized into rather a lot of
places, unfortunately, so that this patch is a great deal more complicated
than one might at first expect.

In particular, keeping EXPLAIN working for SELECT INTO and CREATE TABLE AS
subcommands required restructuring some EXPLAIN-related APIs.  Add-on code
that calls ExplainOnePlan or ExplainOneUtility, or uses
ExplainOneQuery_hook, will need adjustment.

Also, the cases PREPARE ... SELECT INTO and CREATE RULE ... SELECT INTO,
which formerly were accepted though undocumented, are no longer accepted.
The PREPARE case can be replaced with use of CREATE TABLE AS EXECUTE.
The CREATE RULE case doesn't seem to have much real-world use (since the
rule would work only once before failing with "table already exists"),
so we'll not bother with that one.

Both SELECT INTO and CREATE TABLE AS still return a command tag of
"SELECT nnnn".  There was some discussion of returning "CREATE TABLE nnnn",
but for the moment backwards compatibility wins the day.

Andres Freund and Tom Lane
2012-03-19 21:38:12 -04: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 Add bytea_agg, parallel to string_agg. 2011-12-23 08:40:25 -05:00
alter_table.out Add support for renaming constraints 2012-03-10 20:19:13 +02:00
arrays.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05: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 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Add COLLATION FOR expression 2012-03-02 21:12:16 +02: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 Add ENCODING option to COPY TO/FROM and file_fdw. 2011-02-21 14:32:40 +09:00
copyselect.out Have \copy go through SendQuery 2012-01-25 18:22:00 -03: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 More regression tests for LEAKPROOF/NOT LEAKPROOF stuff. 2012-02-15 10:56:26 -05:00
create_index.out Teach SPGiST to store nulls and do whole-index scans. 2012-03-11 16:29:59 -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 Allow CREATE TABLE (LIKE ...) from composite type 2012-03-03 16:03:05 +02:00
create_table.out Fix another bit of unlogged-table-induced breakage. 2011-09-21 10:48:31 -04:00
create_type.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
create_view.out Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
date.out Extend the date type to support infinity and -infinity, analogously to 2008-10-14 17:12:33 +00:00
delete.out Regression tests for TOAST. 2011-04-25 09:48:10 -04:00
dependency.out Improve wording for privilege description on certain failure messages; the 2010-08-26 19:49:08 +00:00
domain.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
drop_if_exists.out Fix DROP OPERATOR FAMILY IF EXISTS. 2011-10-21 09:12:23 -04:00
enum.out Require VALUE keyword when extending an enum type. Based on a patch from Alvaro Herrera. 2010-11-16 22:18:33 -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 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
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 Show default privileges in information schema 2012-01-27 21:58:51 +02:00
foreign_key.out Change FK trigger creation order to better support self-referential FKs. 2011-10-26 13:02:28 -04:00
functional_deps.out Recognize functional dependency on primary keys. This allows a table's 2010-08-07 02:44:09 +00: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 Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05: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 Revisit handling of UNION ALL subqueries with non-Var output columns. 2012-03-16 13:11:55 -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 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
int4.out Attempt to fix breakage caused by signed integer conversion patch. 2010-11-20 01:09:26 -05:00
int8-exp-three-digits.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
int8.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
interval.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
join.out Fix handling of PlaceHolderVars in nestloop parameter management. 2011-11-03 00:50:58 -04:00
json.out Fix a couple of cases of JSON output. 2012-02-20 15:01:03 -05: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 Improve reporting of dependencies in DROP to work like the scheme that we 2008-06-11 21:53:49 +00: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 Support min/max index optimizations on boolean columns. 2012-02-08 12:41:48 -05: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 Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -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 Improve pretty printing of viewdefs. 2012-02-19 11:43:46 -05: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 Add support for privileges on types 2011-12-20 00:05:19 +02:00
random.out Improve random regression tests to fail less frequently. 2004-03-15 15:46:25 +00:00
rangefuncs.out Support index-only scans using the visibility map to avoid heap fetches. 2011-10-07 20:14:13 -04:00
rangetypes.out Remove zero- and one-argument range constructor functions. 2011-11-22 20:45:05 -05:00
regex.out Fix the general case of quantified regex back-references. 2012-02-24 01:41:03 -05: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 Revert updatable views 2009-01-27 12:40:15 +00:00
rowtypes.out Message style and spelling improvements 2011-06-22 00:45:34 +03:00
rules.out Collect and use element-frequency statistics for arrays. 2012-03-03 20:20:57 -05:00
sanity_check.out Rename the internal structures of the CREATE TABLE (LIKE ...) facility 2012-01-07 23:02:33 +02: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 Allow LEAKPROOF functions for better performance of security views. 2012-02-13 22:21:14 -05:00
select_views.out Allow LEAKPROOF functions for better performance of security views. 2012-02-13 22:21:14 -05:00
select.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
sequence_1.out When a row fails a not-null constraint, show row's contents in errdetail. 2011-11-29 18:29:18 -05:00
sequence.out ALTER <thing> [IF EXISTS] ... allows silent DDL if required, 2012-01-23 23:25:04 +00: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 Improve generated column names for cases involving sub-SELECTs. 2011-10-01 14:01:46 -04:00
temp.out Add a bunch of new error location reports to parse-analysis error messages. 2008-09-01 20:42:46 +00: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 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
timestamptz.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Restructure SELECT INTO's parsetree representation into CreateTableAsStmt. 2012-03-19 21:38:12 -04:00
triggers.out Code review for plpgsql fn_signature patch. 2012-02-01 02:14:37 -05:00
truncate.out Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Only allow typed tables to hang off composite types, not e.g. tables. 2011-04-18 10:19:46 -04:00
union.out Revisit handling of UNION ALL subqueries with non-Var output columns. 2012-03-16 13:11:55 -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 Remove old-style VACUUM FULL (which was known for a little while as 2010-02-08 04:33:55 +00: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 Measure the number of all-visible pages for use in index-only scan costing. 2011-10-14 17:23:46 -04:00
with.out Improve pretty printing of viewdefs. 2012-02-19 11:43:46 -05: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 Make xpath() do something useful with XPath expressions that return scalars. 2011-07-21 11:32:46 -04:00
xml.out Make xpath() do something useful with XPath expressions that return scalars. 2011-07-21 11:32:46 -04:00
xmlmap_1.out Regression test for XML mapping functionality 2009-07-02 07:03:18 +00:00
xmlmap.out Ooops, forgot to check the libxml cases for psql output wrapping change. 2009-11-22 06:01:09 +00:00