From: Pavan Deolasee Date: Fri, 5 May 2017 04:57:15 +0000 (+0530) Subject: Update expected output for guc test case missed while cherry-picking X-Git-Tag: XL_10_R1BETA1~309 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7b6821d7ca3ac5ea210f4cf0449f7d83fd5e057f;p=postgres-xl.git Update expected output for guc test case missed while cherry-picking 9954d3510a85918fa2c99c20be2ab1d6d32a584b The test case still fails, but for other outstanding issues in the merge. --- diff --git a/src/test/regress/expected/guc.out b/src/test/regress/expected/guc.out index 95ab54fcbf..d28ef2cdbc 100644 --- a/src/test/regress/expected/guc.out +++ b/src/test/regress/expected/guc.out @@ -466,3 +466,240 @@ NOTICE: text search configuration "no_such_config" does not exist select func_with_bad_set(); ERROR: invalid value for parameter "default_text_search_config": "no_such_config" reset check_function_bodies; +SET application_name TO "special name"; +CREATE TABLE testtab (a int); +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET default_transaction_isolation TO "read committed"; +CREATE TABLE testtab (a int); +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET work_mem TO '64kB'; +CREATE TABLE testtab (a int); +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET work_mem TO "64kB"; +CREATE TABLE testtab (a int); +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET log_min_duration_statement = '1s'; +CREATE TABLE testtab (a int); +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +CREATE SCHEMA testschema; +CREATE SCHEMA "testschema 2"; +CREATE SCHEMA "testschema 3"; +CREATE SCHEMA READ; +CREATE SCHEMA "READ"; +-- ERROR +CREATE SCHEMA SELECT; +ERROR: syntax error at or near "SELECT" +LINE 1: CREATE SCHEMA SELECT; + ^ +-- Ok +CREATE SCHEMA "SELECT"; +SET search_path TO testschema; +CREATE TABLE testtab (a int); +\d+ testtab + Table "testschema.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET search_path TO "testschema"; +CREATE TABLE testtab (a int); +\d+ testtab + Table "testschema.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET search_path TO testschema, "testschema 2"; +CREATE TABLE testtab (a int); +\d+ testtab + Table "testschema.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +SET search_path TO "testschema 3", "testschema 2"; +CREATE TABLE testtab (a int); +\d+ testtab + Table "testschema 3.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +INSERT INTO testtab VALUES (1), (2), (3); +SELECT * FROM testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +DROP TABLE testtab; +-- ERROR +SET search_path TO "testschema 3", SELECT; +ERROR: syntax error at or near "SELECT" +LINE 1: SET search_path TO "testschema 3", SELECT; + ^ +SET search_path TO "SELECT", "testschema 3"; +CREATE TABLE testtab (a int); +\d+ testtab + Table "SELECT.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +CREATE TABLE "testschema 3".testtab (a int); +\d+ testtab + Table "SELECT.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +INSERT INTO "testschema 3".testtab VALUES (1), (2), (3); +INSERT INTO "SELECT".testtab VALUES (4); +SELECT * FROM "testschema 3".testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +INSERT INTO testtab SELECT * FROM "testschema 3".testtab; +SELECT * FROM "testschema 3".testtab; + a +--- + 1 + 2 + 3 +(3 rows) + +\d+ testtab + Table "SELECT.testtab" + Column | Type | Modifiers | Storage | Stats target | Description +--------+---------+-----------+---------+--------------+------------- + a | integer | | plain | | +Distribute By: HASH(a) +Location Nodes: ALL DATANODES + +SELECT * FROM testtab; + a +--- + 1 + 2 + 4 + 3 +(4 rows) + +INSERT INTO testtab SELECT * FROM testtab; +SELECT * FROM testtab; + a +--- + 1 + 2 + 1 + 2 + 4 + 3 + 4 + 3 +(8 rows) + +DROP TABLE testtab; +DROP SCHEMA testschema CASCADE; +DROP SCHEMA "testschema 2" CASCADE; +DROP SCHEMA "testschema 3" CASCADE; +NOTICE: drop cascades to table testtab +DROP SCHEMA "READ" CASCADE; +DROP SCHEMA SELECT CASCADE; +ERROR: syntax error at or near "SELECT" +LINE 1: DROP SCHEMA SELECT CASCADE; + ^ +DROP SCHEMA "SELECT" CASCADE;