summaryrefslogtreecommitdiff
path: root/src/test/regress/expected/truncate_1.out
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/regress/expected/truncate_1.out')
-rw-r--r--src/test/regress/expected/truncate_1.out27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/test/regress/expected/truncate_1.out b/src/test/regress/expected/truncate_1.out
index 1774ce457b..2ada364da6 100644
--- a/src/test/regress/expected/truncate_1.out
+++ b/src/test/regress/expected/truncate_1.out
@@ -32,7 +32,7 @@ SELECT * FROM truncate_a ORDER BY 1;
-- Test foreign-key checks
CREATE TABLE trunc_b (a int REFERENCES truncate_a);
-CREATE TABLE trunc_c (a serial PRIMARY KEY);
+CREATE TABLE trunc_c (a serial PRIMARY KEY) DISTRIBUTE BY REPLICATION;
NOTICE: CREATE TABLE will create implicit sequence "trunc_c_a_seq" for serial column "trunc_c.a"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "trunc_c_pkey" for table "trunc_c"
CREATE TABLE trunc_d (a int REFERENCES trunc_c);
@@ -304,7 +304,7 @@ CREATE TRIGGER t
BEFORE TRUNCATE ON trunc_trigger_test
FOR EACH STATEMENT
EXECUTE PROCEDURE trunctrigger('before trigger truncate');
-ERROR: Postgres-XC does not support TRIGGER yet
+ERROR: Postgres-XL does not support TRIGGER yet
DETAIL: The feature is not currently supported
SELECT count(*) as "Row count in test table" FROM trunc_trigger_test;
Row count in test table
@@ -338,7 +338,7 @@ CREATE TRIGGER tt
AFTER TRUNCATE ON trunc_trigger_test
FOR EACH STATEMENT
EXECUTE PROCEDURE trunctrigger('after trigger truncate');
-ERROR: Postgres-XC does not support TRIGGER yet
+ERROR: Postgres-XL does not support TRIGGER yet
DETAIL: The feature is not currently supported
SELECT count(*) as "Row count in test table" FROM trunc_trigger_test;
Row count in test table
@@ -392,25 +392,28 @@ SELECT * FROM truncate_a ORDER BY id;
(2 rows)
TRUNCATE truncate_a RESTART IDENTITY;
+ERROR: PGXC does not support RESTART IDENTITY yet
+DETAIL: The feature is not supported currently
INSERT INTO truncate_a DEFAULT VALUES;
INSERT INTO truncate_a DEFAULT VALUES;
SELECT * FROM truncate_a ORDER BY id;
id | id1
----+-----
+ 3 | 35
+ 4 | 36
5 | 37
6 | 38
-(2 rows)
+(4 rows)
-- check rollback of a RESTART IDENTITY operation
BEGIN;
TRUNCATE truncate_a RESTART IDENTITY;
+ERROR: PGXC does not support RESTART IDENTITY yet
+DETAIL: The feature is not supported currently
INSERT INTO truncate_a DEFAULT VALUES;
+ERROR: current transaction is aborted, commands ignored until end of transaction block
SELECT * FROM truncate_a;
- id | id1
-----+-----
- 7 | 39
-(1 row)
-
+ERROR: current transaction is aborted, commands ignored until end of transaction block
ROLLBACK;
INSERT INTO truncate_a DEFAULT VALUES;
INSERT INTO truncate_a DEFAULT VALUES;
@@ -420,8 +423,10 @@ SELECT * FROM truncate_a;
5 | 37
6 | 38
8 | 40
- 9 | 41
-(4 rows)
+ 3 | 35
+ 4 | 36
+ 7 | 39
+(6 rows)
DROP TABLE truncate_a;
SELECT nextval('truncate_a_id1'); -- fail, seq should have been dropped