Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c95f0b

Browse files
committed
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.
1 parent 38d1037 commit 1c95f0b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/regress/expected/alter_table.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,18 +3034,18 @@ CREATE TABLE list_partitioned (a int not null) partition by list (a);
30343034
ALTER TABLE list_partitioned ALTER a DROP NOT NULL;
30353035
DROP TABLE list_partitioned;
30363036
-- partitioned table cannot participate in regular inheritance
3037-
CREATE TABLE foo (
3037+
CREATE TABLE nonpartitioned (
30383038
a int,
30393039
b int
30403040
);
3041-
ALTER TABLE partitioned INHERIT foo;
3041+
ALTER TABLE partitioned INHERIT nonpartitioned;
30423042
ERROR: cannot change inheritance of partitioned table
3043-
ALTER TABLE foo INHERIT partitioned;
3043+
ALTER TABLE nonpartitioned INHERIT partitioned;
30443044
ERROR: cannot inherit from partitioned table "partitioned"
30453045
-- cannot add NO INHERIT constraint to partitioned tables
30463046
ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT;
30473047
ERROR: cannot add NO INHERIT constraint to partitioned table "partitioned"
3048-
DROP TABLE partitioned, foo;
3048+
DROP TABLE partitioned, nonpartitioned;
30493049
--
30503050
-- ATTACH PARTITION
30513051
--

src/test/regress/sql/alter_table.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,17 +1923,17 @@ ALTER TABLE list_partitioned ALTER a DROP NOT NULL;
19231923
DROP TABLE list_partitioned;
19241924

19251925
-- partitioned table cannot participate in regular inheritance
1926-
CREATE TABLE foo (
1926+
CREATE TABLE nonpartitioned (
19271927
a int,
19281928
b int
19291929
);
1930-
ALTER TABLE partitioned INHERIT foo;
1931-
ALTER TABLE foo INHERIT partitioned;
1930+
ALTER TABLE partitioned INHERIT nonpartitioned;
1931+
ALTER TABLE nonpartitioned INHERIT partitioned;
19321932

19331933
-- cannot add NO INHERIT constraint to partitioned tables
19341934
ALTER TABLE partitioned ADD CONSTRAINT chk_a CHECK (a > 0) NO INHERIT;
19351935

1936-
DROP TABLE partitioned, foo;
1936+
DROP TABLE partitioned, nonpartitioned;
19371937

19381938
--
19391939
-- ATTACH PARTITION

0 commit comments

Comments
 (0)