@ -742,6 +742,8 @@ COMMENT ON COLUMN ft1.c1 IS 'ft1.c1';
Check constraints:
Check constraints:
"ft1_c2_check" CHECK (c2 <> ''::text)
"ft1_c2_check" CHECK (c2 <> ''::text)
"ft1_c3_check" CHECK (c3 >= '01-01-1994'::date AND c3 <= '01-31-1994'::date)
"ft1_c3_check" CHECK (c3 >= '01-01-1994'::date AND c3 <= '01-31-1994'::date)
Not-null constraints:
"ft1_c1_not_null" NOT NULL "c1"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -864,6 +866,9 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET STORAGE PLAIN;
Check constraints:
Check constraints:
"ft1_c2_check" CHECK (c2 <> ''::text)
"ft1_c2_check" CHECK (c2 <> ''::text)
"ft1_c3_check" CHECK (c3 >= '01-01-1994'::date AND c3 <= '01-31-1994'::date)
"ft1_c3_check" CHECK (c3 >= '01-01-1994'::date AND c3 <= '01-31-1994'::date)
Not-null constraints:
"ft1_c1_not_null" NOT NULL "c1"
"ft1_c6_not_null" NOT NULL "c6"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1404,6 +1409,8 @@ CREATE FOREIGN TABLE ft2 () INHERITS (fd_pt1)
c1 | integer | | not null | | plain | |
c1 | integer | | not null | | plain | |
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1413,6 +1420,8 @@ Child tables: ft2, FOREIGN
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1" (inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1425,6 +1434,8 @@ DROP FOREIGN TABLE ft2;
c1 | integer | | not null | | plain | |
c1 | integer | | not null | | plain | |
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
CREATE FOREIGN TABLE ft2 (
CREATE FOREIGN TABLE ft2 (
c1 integer NOT NULL,
c1 integer NOT NULL,
@ -1438,6 +1449,8 @@ CREATE FOREIGN TABLE ft2 (
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1449,6 +1462,8 @@ ALTER FOREIGN TABLE ft2 INHERIT fd_pt1;
c1 | integer | | not null | | plain | |
c1 | integer | | not null | | plain | |
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1458,6 +1473,8 @@ Child tables: ft2, FOREIGN
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1479,6 +1496,8 @@ NOTICE: merging column "c3" with inherited definition
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1492,6 +1511,8 @@ Child tables: ct3,
c1 | integer | | not null | | plain | |
c1 | integer | | not null | | plain | |
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (inherited)
Inherits: ft2
Inherits: ft2
\d+ ft3
\d+ ft3
@ -1501,6 +1522,8 @@ Inherits: ft2
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"ft3_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
Inherits: ft2
Inherits: ft2
@ -1522,6 +1545,9 @@ ALTER TABLE fd_pt1 ADD COLUMN c8 integer;
c6 | integer | | | | plain | |
c6 | integer | | | | plain | |
c7 | integer | | not null | | plain | |
c7 | integer | | not null | | plain | |
c8 | integer | | | | plain | |
c8 | integer | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
"fd_pt1_c7_not_null" NOT NULL "c7"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1536,6 +1562,9 @@ Child tables: ft2, FOREIGN
c6 | integer | | | | | plain | |
c6 | integer | | | | | plain | |
c7 | integer | | not null | | | plain | |
c7 | integer | | not null | | | plain | |
c8 | integer | | | | | plain | |
c8 | integer | | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
"fd_pt1_c7_not_null" NOT NULL "c7" (inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1554,6 +1583,9 @@ Child tables: ct3,
c6 | integer | | | | plain | |
c6 | integer | | | | plain | |
c7 | integer | | not null | | plain | |
c7 | integer | | not null | | plain | |
c8 | integer | | | | plain | |
c8 | integer | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (inherited)
"fd_pt1_c7_not_null" NOT NULL "c7" (inherited)
Inherits: ft2
Inherits: ft2
\d+ ft3
\d+ ft3
@ -1568,6 +1600,9 @@ Inherits: ft2
c6 | integer | | | | | plain | |
c6 | integer | | | | | plain | |
c7 | integer | | not null | | | plain | |
c7 | integer | | not null | | | plain | |
c8 | integer | | | | | plain | |
c8 | integer | | | | | plain | |
Not-null constraints:
"ft3_c1_not_null" NOT NULL "c1" (local, inherited)
"fd_pt1_c7_not_null" NOT NULL "c7" (inherited)
Server: s0
Server: s0
Inherits: ft2
Inherits: ft2
@ -1596,6 +1631,9 @@ ALTER TABLE fd_pt1 ALTER COLUMN c8 SET STORAGE EXTERNAL;
c6 | integer | | not null | | plain | |
c6 | integer | | not null | | plain | |
c7 | integer | | | | plain | |
c7 | integer | | | | plain | |
c8 | text | | | | external | |
c8 | text | | | | external | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
"fd_pt1_c6_not_null" NOT NULL "c6"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1610,6 +1648,9 @@ Child tables: ft2, FOREIGN
c6 | integer | | not null | | | plain | |
c6 | integer | | not null | | | plain | |
c7 | integer | | | | | plain | |
c7 | integer | | | | | plain | |
c8 | text | | | | | external | |
c8 | text | | | | | external | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
"fd_pt1_c6_not_null" NOT NULL "c6" (inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1629,6 +1670,8 @@ ALTER TABLE fd_pt1 DROP COLUMN c8;
c1 | integer | | not null | | plain | 10000 |
c1 | integer | | not null | | plain | 10000 |
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1638,6 +1681,8 @@ Child tables: ft2, FOREIGN
c1 | integer | | not null | | | plain | 10000 |
c1 | integer | | not null | | | plain | 10000 |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1652,11 +1697,12 @@ SELECT relname, conname, contype, conislocal, coninhcount, connoinherit
FROM pg_class AS pc JOIN pg_constraint AS pgc ON (conrelid = pc.oid)
FROM pg_class AS pc JOIN pg_constraint AS pgc ON (conrelid = pc.oid)
WHERE pc.relname = 'fd_pt1'
WHERE pc.relname = 'fd_pt1'
ORDER BY 1,2;
ORDER BY 1,2;
relname | conname | contype | conislocal | coninhcount | connoinherit
relname | conname | contype | conislocal | coninhcount | connoinherit
---------+------------+---------+------------+-------------+--------------
---------+--------------------+---------+------------+-------------+--------------
fd_pt1 | fd_pt1chk1 | c | t | 0 | t
fd_pt1 | fd_pt1_c1_not_null | n | t | 0 | f
fd_pt1 | fd_pt1chk2 | c | t | 0 | f
fd_pt1 | fd_pt1chk1 | c | t | 0 | t
(2 rows)
fd_pt1 | fd_pt1chk2 | c | t | 0 | f
(3 rows)
-- child does not inherit NO INHERIT constraints
-- child does not inherit NO INHERIT constraints
\d+ fd_pt1
\d+ fd_pt1
@ -1669,6 +1715,8 @@ SELECT relname, conname, contype, conislocal, coninhcount, connoinherit
Check constraints:
Check constraints:
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1680,6 +1728,8 @@ Child tables: ft2, FOREIGN
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Check constraints:
Check constraints:
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1716,6 +1766,8 @@ ALTER FOREIGN TABLE ft2 INHERIT fd_pt1;
Check constraints:
Check constraints:
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1727,6 +1779,8 @@ Child tables: ft2, FOREIGN
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Check constraints:
Check constraints:
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1746,6 +1800,8 @@ ALTER TABLE fd_pt1 ADD CONSTRAINT fd_pt1chk3 CHECK (c2 <> '') NOT VALID;
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Check constraints:
Check constraints:
"fd_pt1chk3" CHECK (c2 <> ''::text) NOT VALID
"fd_pt1chk3" CHECK (c2 <> ''::text) NOT VALID
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1758,6 +1814,8 @@ Child tables: ft2, FOREIGN
Check constraints:
Check constraints:
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk3" CHECK (c2 <> ''::text) NOT VALID
"fd_pt1chk3" CHECK (c2 <> ''::text) NOT VALID
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1773,6 +1831,8 @@ ALTER TABLE fd_pt1 VALIDATE CONSTRAINT fd_pt1chk3;
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Check constraints:
Check constraints:
"fd_pt1chk3" CHECK (c2 <> ''::text)
"fd_pt1chk3" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "c1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1785,6 +1845,8 @@ Child tables: ft2, FOREIGN
Check constraints:
Check constraints:
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk2" CHECK (c2 <> ''::text)
"fd_pt1chk3" CHECK (c2 <> ''::text)
"fd_pt1chk3" CHECK (c2 <> ''::text)
Not-null constraints:
"ft2_c1_not_null" NOT NULL "c1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1804,6 +1866,8 @@ ALTER TABLE fd_pt1 RENAME CONSTRAINT fd_pt1chk3 TO f2_check;
f3 | date | | | | plain | |
f3 | date | | | | plain | |
Check constraints:
Check constraints:
"f2_check" CHECK (f2 <> ''::text)
"f2_check" CHECK (f2 <> ''::text)
Not-null constraints:
"fd_pt1_c1_not_null" NOT NULL "f1"
Child tables: ft2, FOREIGN
Child tables: ft2, FOREIGN
\d+ ft2
\d+ ft2
@ -1816,6 +1880,8 @@ Child tables: ft2, FOREIGN
Check constraints:
Check constraints:
"f2_check" CHECK (f2 <> ''::text)
"f2_check" CHECK (f2 <> ''::text)
"fd_pt1chk2" CHECK (f2 <> ''::text)
"fd_pt1chk2" CHECK (f2 <> ''::text)
Not-null constraints:
"ft2_c1_not_null" NOT NULL "f1" (local, inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: fd_pt1
Inherits: fd_pt1
@ -1862,6 +1928,8 @@ CREATE FOREIGN TABLE fd_pt2_1 PARTITION OF fd_pt2 FOR VALUES IN (1)
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Partition key: LIST (c1)
Partition key: LIST (c1)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
\d+ fd_pt2_1
\d+ fd_pt2_1
@ -1873,6 +1941,8 @@ Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Partition of: fd_pt2 FOR VALUES IN (1)
Partition of: fd_pt2 FOR VALUES IN (1)
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1" (inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1892,6 +1962,8 @@ CREATE FOREIGN TABLE fd_pt2_1 (
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
c4 | character(1) | | | | | extended | |
c4 | character(1) | | | | | extended | |
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1907,6 +1979,8 @@ DROP FOREIGN TABLE fd_pt2_1;
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Partition key: LIST (c1)
Partition key: LIST (c1)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
Number of partitions: 0
Number of partitions: 0
CREATE FOREIGN TABLE fd_pt2_1 (
CREATE FOREIGN TABLE fd_pt2_1 (
@ -1921,6 +1995,8 @@ CREATE FOREIGN TABLE fd_pt2_1 (
c1 | integer | | not null | | | plain | |
c1 | integer | | not null | | | plain | |
c2 | text | | | | | extended | |
c2 | text | | | | | extended | |
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1934,6 +2010,8 @@ ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Partition key: LIST (c1)
Partition key: LIST (c1)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
\d+ fd_pt2_1
\d+ fd_pt2_1
@ -1945,6 +2023,8 @@ Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
c3 | date | | | | | plain | |
c3 | date | | | | | plain | |
Partition of: fd_pt2 FOR VALUES IN (1)
Partition of: fd_pt2 FOR VALUES IN (1)
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1" (inherited)
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1962,6 +2042,8 @@ ALTER TABLE fd_pt2_1 ADD CONSTRAINT p21chk CHECK (c2 <> '');
c2 | text | | | | extended | |
c2 | text | | | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Partition key: LIST (c1)
Partition key: LIST (c1)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
\d+ fd_pt2_1
\d+ fd_pt2_1
@ -1975,6 +2057,9 @@ Partition of: fd_pt2 FOR VALUES IN (1)
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Partition constraint: ((c1 IS NOT NULL) AND (c1 = 1))
Check constraints:
Check constraints:
"p21chk" CHECK (c2 <> ''::text)
"p21chk" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1" (inherited)
"fd_pt2_1_c3_not_null" NOT NULL "c3"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -1992,6 +2077,9 @@ ALTER TABLE fd_pt2 ALTER c2 SET NOT NULL;
c2 | text | | not null | | extended | |
c2 | text | | not null | | extended | |
c3 | date | | | | plain | |
c3 | date | | | | plain | |
Partition key: LIST (c1)
Partition key: LIST (c1)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
"fd_pt2_c2_not_null" NOT NULL "c2"
Number of partitions: 0
Number of partitions: 0
\d+ fd_pt2_1
\d+ fd_pt2_1
@ -2003,6 +2091,9 @@ Number of partitions: 0
c3 | date | | not null | | | plain | |
c3 | date | | not null | | | plain | |
Check constraints:
Check constraints:
"p21chk" CHECK (c2 <> ''::text)
"p21chk" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1"
"fd_pt2_1_c3_not_null" NOT NULL "c3"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
@ -2022,6 +2113,9 @@ ALTER TABLE fd_pt2 ADD CONSTRAINT fd_pt2chk1 CHECK (c1 > 0);
Partition key: LIST (c1)
Partition key: LIST (c1)
Check constraints:
Check constraints:
"fd_pt2chk1" CHECK (c1 > 0)
"fd_pt2chk1" CHECK (c1 > 0)
Not-null constraints:
"fd_pt2_c1_not_null" NOT NULL "c1"
"fd_pt2_c2_not_null" NOT NULL "c2"
Number of partitions: 0
Number of partitions: 0
\d+ fd_pt2_1
\d+ fd_pt2_1
@ -2033,6 +2127,10 @@ Number of partitions: 0
c3 | date | | not null | | | plain | |
c3 | date | | not null | | | plain | |
Check constraints:
Check constraints:
"p21chk" CHECK (c2 <> ''::text)
"p21chk" CHECK (c2 <> ''::text)
Not-null constraints:
"fd_pt2_1_c1_not_null" NOT NULL "c1"
"fd_pt2_1_c2_not_null" NOT NULL "c2"
"fd_pt2_1_c3_not_null" NOT NULL "c3"
Server: s0
Server: s0
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
FDW options: (delimiter ',', quote '"', "be quoted" 'value')