1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

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.
This commit is contained in:
Tom Lane 2017-02-21 12:18:22 -05:00
parent 38d103763d
commit 1c95f0b478
2 changed files with 8 additions and 8 deletions

View File

@ -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
-- --

View File

@ -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