Commit 1c95f0b4 authored by Tom Lane's avatar Tom Lane

Use less-generic table name in new regression test case.

Creating global objects named "foo" isn't an especially wise thing,
but especially not in a test script that has already used that name
for something else, and most especially not in a script that runs
in parallel with other scripts that use that name :-(

Per buildfarm.
parent 38d10376
...@@ -3034,18 +3034,18 @@ CREATE TABLE list_partitioned (a int not null) partition by list (a); ...@@ -3034,18 +3034,18 @@ CREATE TABLE list_partitioned (a int not null) partition by list (a);
ALTER TABLE list_partitioned ALTER a DROP NOT NULL; ALTER TABLE list_partitioned ALTER a DROP NOT NULL;
DROP TABLE list_partitioned; DROP TABLE list_partitioned;
-- partitioned table cannot participate in regular inheritance -- partitioned table cannot participate in regular inheritance
CREATE TABLE foo ( CREATE TABLE nonpartitioned (
a int, a int,
b int b int
); );
ALTER TABLE partitioned INHERIT foo; ALTER TABLE partitioned INHERIT nonpartitioned;
ERROR: cannot change inheritance of partitioned table ERROR: cannot change inheritance of partitioned table
ALTER TABLE foo INHERIT partitioned; ALTER TABLE nonpartitioned INHERIT partitioned;
ERROR: cannot inherit from partitioned table "partitioned" ERROR: cannot inherit from partitioned table "partitioned"
-- cannot add NO INHERIT constraint to partitioned tables -- cannot add NO INHERIT constraint to partitioned tables
ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT; ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT;
ERROR: cannot add NO INHERIT constraint to partitioned table "partitioned" ERROR: cannot add NO INHERIT constraint to partitioned table "partitioned"
DROP TABLE partitioned, foo; DROP TABLE partitioned, nonpartitioned;
-- --
-- ATTACH PARTITION -- ATTACH PARTITION
-- --
......
...@@ -1923,17 +1923,17 @@ ALTER TABLE list_partitioned ALTER a DROP NOT NULL; ...@@ -1923,17 +1923,17 @@ ALTER TABLE list_partitioned ALTER a DROP NOT NULL;
DROP TABLE list_partitioned; DROP TABLE list_partitioned;
-- partitioned table cannot participate in regular inheritance -- partitioned table cannot participate in regular inheritance
CREATE TABLE foo ( CREATE TABLE nonpartitioned (
a int, a int,
b int b int
); );
ALTER TABLE partitioned INHERIT foo; ALTER TABLE partitioned INHERIT nonpartitioned;
ALTER TABLE foo INHERIT partitioned; ALTER TABLE nonpartitioned INHERIT partitioned;
-- cannot add NO INHERIT constraint to partitioned tables -- cannot add NO INHERIT constraint to partitioned tables
ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT; ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT;
DROP TABLE partitioned, foo; DROP TABLE partitioned, nonpartitioned;
-- --
-- ATTACH PARTITION -- ATTACH PARTITION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment