mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Fix name collision between concurrent regression tests.
Commit f5bcd398addcbeb785f0513cf28cba5d1ecd2c8a introduced a test using a table named "circles" in inherit.sql. Unfortunately, the concurrently executed constraints test was already using that table name, so the parallel regression tests would sometimes fail. Rename table to dodge the problem. Per buildfarm.
This commit is contained in:
parent
2d46a57ddc
commit
b71258af56
@ -1007,40 +1007,40 @@ Has OIDs: no
|
|||||||
|
|
||||||
DROP TABLE test_constraints_inh;
|
DROP TABLE test_constraints_inh;
|
||||||
DROP TABLE test_constraints;
|
DROP TABLE test_constraints;
|
||||||
CREATE TABLE circles (
|
CREATE TABLE test_ex_constraints (
|
||||||
c circle,
|
c circle,
|
||||||
EXCLUDE USING gist (c WITH &&)
|
EXCLUDE USING gist (c WITH &&)
|
||||||
);
|
);
|
||||||
CREATE TABLE circles_inh () INHERITS (circles);
|
CREATE TABLE test_ex_constraints_inh () INHERITS (test_ex_constraints);
|
||||||
\d+ circles
|
\d+ test_ex_constraints
|
||||||
Table "public.circles"
|
Table "public.test_ex_constraints"
|
||||||
Column | Type | Modifiers | Storage | Stats target | Description
|
Column | Type | Modifiers | Storage | Stats target | Description
|
||||||
--------+--------+-----------+---------+--------------+-------------
|
--------+--------+-----------+---------+--------------+-------------
|
||||||
c | circle | | plain | |
|
c | circle | | plain | |
|
||||||
Indexes:
|
Indexes:
|
||||||
"circles_c_excl" EXCLUDE USING gist (c WITH &&)
|
"test_ex_constraints_c_excl" EXCLUDE USING gist (c WITH &&)
|
||||||
Child tables: circles_inh
|
Child tables: test_ex_constraints_inh
|
||||||
Has OIDs: no
|
Has OIDs: no
|
||||||
|
|
||||||
ALTER TABLE circles DROP CONSTRAINT circles_c_excl;
|
ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
|
||||||
\d+ circles
|
\d+ test_ex_constraints
|
||||||
Table "public.circles"
|
Table "public.test_ex_constraints"
|
||||||
Column | Type | Modifiers | Storage | Stats target | Description
|
Column | Type | Modifiers | Storage | Stats target | Description
|
||||||
--------+--------+-----------+---------+--------------+-------------
|
--------+--------+-----------+---------+--------------+-------------
|
||||||
c | circle | | plain | |
|
c | circle | | plain | |
|
||||||
Child tables: circles_inh
|
Child tables: test_ex_constraints_inh
|
||||||
Has OIDs: no
|
Has OIDs: no
|
||||||
|
|
||||||
\d+ circles_inh
|
\d+ test_ex_constraints_inh
|
||||||
Table "public.circles_inh"
|
Table "public.test_ex_constraints_inh"
|
||||||
Column | Type | Modifiers | Storage | Stats target | Description
|
Column | Type | Modifiers | Storage | Stats target | Description
|
||||||
--------+--------+-----------+---------+--------------+-------------
|
--------+--------+-----------+---------+--------------+-------------
|
||||||
c | circle | | plain | |
|
c | circle | | plain | |
|
||||||
Inherits: circles
|
Inherits: test_ex_constraints
|
||||||
Has OIDs: no
|
Has OIDs: no
|
||||||
|
|
||||||
DROP TABLE circles_inh;
|
DROP TABLE test_ex_constraints_inh;
|
||||||
DROP TABLE circles;
|
DROP TABLE test_ex_constraints;
|
||||||
-- Test non-inheritable foreign key contraints
|
-- Test non-inheritable foreign key contraints
|
||||||
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
|
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
|
||||||
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
|
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
|
||||||
|
@ -302,17 +302,17 @@ ALTER TABLE ONLY test_constraints DROP CONSTRAINT test_constraints_val1_val2_key
|
|||||||
DROP TABLE test_constraints_inh;
|
DROP TABLE test_constraints_inh;
|
||||||
DROP TABLE test_constraints;
|
DROP TABLE test_constraints;
|
||||||
|
|
||||||
CREATE TABLE circles (
|
CREATE TABLE test_ex_constraints (
|
||||||
c circle,
|
c circle,
|
||||||
EXCLUDE USING gist (c WITH &&)
|
EXCLUDE USING gist (c WITH &&)
|
||||||
);
|
);
|
||||||
CREATE TABLE circles_inh () INHERITS (circles);
|
CREATE TABLE test_ex_constraints_inh () INHERITS (test_ex_constraints);
|
||||||
\d+ circles
|
\d+ test_ex_constraints
|
||||||
ALTER TABLE circles DROP CONSTRAINT circles_c_excl;
|
ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
|
||||||
\d+ circles
|
\d+ test_ex_constraints
|
||||||
\d+ circles_inh
|
\d+ test_ex_constraints_inh
|
||||||
DROP TABLE circles_inh;
|
DROP TABLE test_ex_constraints_inh;
|
||||||
DROP TABLE circles;
|
DROP TABLE test_ex_constraints;
|
||||||
|
|
||||||
-- Test non-inheritable foreign key contraints
|
-- Test non-inheritable foreign key contraints
|
||||||
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
|
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user