@ -1007,40 +1007,40 @@ Has OIDs: no
DROP TABLE test_constraints_inh;
DROP TABLE test_constraints;
CREATE TABLE circle s (
CREATE TABLE test_ex_constraint s (
c circle,
EXCLUDE USING gist (c WITH &&)
);
CREATE TABLE circles_inh () INHERITS (circle s);
\d+ circle s
Table "public.circle s"
CREATE TABLE test_ex_constraints_inh () INHERITS (test_ex_constraint s);
\d+ test_ex_constraint s
Table "public.test_ex_constraint s"
Column | Type | Modifiers | Storage | Stats target | Description
--------+--------+-----------+---------+--------------+-------------
c | circle | | plain | |
Indexes:
"circle s_c_excl" EXCLUDE USING gist (c WITH &&)
Child tables: circle s_inh
"test_ex_constraint s_c_excl" EXCLUDE USING gist (c WITH &&)
Child tables: test_ex_constraint s_inh
Has OIDs: no
ALTER TABLE circles DROP CONSTRAINT circle s_c_excl;
\d+ circle s
Table "public.circle s"
ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraint s_c_excl;
\d+ test_ex_constraint s
Table "public.test_ex_constraint s"
Column | Type | Modifiers | Storage | Stats target | Description
--------+--------+-----------+---------+--------------+-------------
c | circle | | plain | |
Child tables: circle s_inh
Child tables: test_ex_constraint s_inh
Has OIDs: no
\d+ circle s_inh
Table "public.circle s_inh"
\d+ test_ex_constraint s_inh
Table "public.test_ex_constraint s_inh"
Column | Type | Modifiers | Storage | Stats target | Description
--------+--------+-----------+---------+--------------+-------------
c | circle | | plain | |
Inherits: circle s
Inherits: test_ex_constraint s
Has OIDs: no
DROP TABLE circle s_inh;
DROP TABLE circle s;
DROP TABLE test_ex_constraint s_inh;
DROP TABLE test_ex_constraint s;
-- Test non-inheritable foreign key contraints
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));