@@ -1404,7 +1404,7 @@ CREATE FOREIGN TABLE ft2 () INHERITS (fd_pt1)
1404
1404
c1 | integer | | not null | | plain | |
1405
1405
c2 | text | | | | extended | |
1406
1406
c3 | date | | | | plain | |
1407
- Child tables: ft2
1407
+ Child tables: ft2, FOREIGN
1408
1408
1409
1409
\d+ ft2
1410
1410
Foreign table "public.ft2"
@@ -1449,7 +1449,7 @@ ALTER FOREIGN TABLE ft2 INHERIT fd_pt1;
1449
1449
c1 | integer | | not null | | plain | |
1450
1450
c2 | text | | | | extended | |
1451
1451
c3 | date | | | | plain | |
1452
- Child tables: ft2
1452
+ Child tables: ft2, FOREIGN
1453
1453
1454
1454
\d+ ft2
1455
1455
Foreign table "public.ft2"
@@ -1483,7 +1483,7 @@ Server: s0
1483
1483
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
1484
1484
Inherits: fd_pt1
1485
1485
Child tables: ct3,
1486
- ft3
1486
+ ft3, FOREIGN
1487
1487
1488
1488
\d+ ct3
1489
1489
Table "public.ct3"
@@ -1522,7 +1522,7 @@ ALTER TABLE fd_pt1 ADD COLUMN c8 integer;
1522
1522
c6 | integer | | | | plain | |
1523
1523
c7 | integer | | not null | | plain | |
1524
1524
c8 | integer | | | | plain | |
1525
- Child tables: ft2
1525
+ Child tables: ft2, FOREIGN
1526
1526
1527
1527
\d+ ft2
1528
1528
Foreign table "public.ft2"
@@ -1540,7 +1540,7 @@ Server: s0
1540
1540
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
1541
1541
Inherits: fd_pt1
1542
1542
Child tables: ct3,
1543
- ft3
1543
+ ft3, FOREIGN
1544
1544
1545
1545
\d+ ct3
1546
1546
Table "public.ct3"
@@ -1596,7 +1596,7 @@ ALTER TABLE fd_pt1 ALTER COLUMN c8 SET STORAGE EXTERNAL;
1596
1596
c6 | integer | | not null | | plain | |
1597
1597
c7 | integer | | | | plain | |
1598
1598
c8 | text | | | | external | |
1599
- Child tables: ft2
1599
+ Child tables: ft2, FOREIGN
1600
1600
1601
1601
\d+ ft2
1602
1602
Foreign table "public.ft2"
@@ -1614,7 +1614,7 @@ Server: s0
1614
1614
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
1615
1615
Inherits: fd_pt1
1616
1616
Child tables: ct3,
1617
- ft3
1617
+ ft3, FOREIGN
1618
1618
1619
1619
-- drop attributes recursively
1620
1620
ALTER TABLE fd_pt1 DROP COLUMN c4;
@@ -1629,7 +1629,7 @@ ALTER TABLE fd_pt1 DROP COLUMN c8;
1629
1629
c1 | integer | | not null | | plain | 10000 |
1630
1630
c2 | text | | | | extended | |
1631
1631
c3 | date | | | | plain | |
1632
- Child tables: ft2
1632
+ Child tables: ft2, FOREIGN
1633
1633
1634
1634
\d+ ft2
1635
1635
Foreign table "public.ft2"
@@ -1642,7 +1642,7 @@ Server: s0
1642
1642
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
1643
1643
Inherits: fd_pt1
1644
1644
Child tables: ct3,
1645
- ft3
1645
+ ft3, FOREIGN
1646
1646
1647
1647
-- add constraints recursively
1648
1648
ALTER TABLE fd_pt1 ADD CONSTRAINT fd_pt1chk1 CHECK (c1 > 0) NO INHERIT;
@@ -1669,7 +1669,7 @@ SELECT relname, conname, contype, conislocal, coninhcount, connoinherit
1669
1669
Check constraints:
1670
1670
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
1671
1671
"fd_pt1chk2" CHECK (c2 <> ''::text)
1672
- Child tables: ft2
1672
+ Child tables: ft2, FOREIGN
1673
1673
1674
1674
\d+ ft2
1675
1675
Foreign table "public.ft2"
@@ -1684,7 +1684,7 @@ Server: s0
1684
1684
FDW options: (delimiter ',', quote '"', "be quoted" 'value')
1685
1685
Inherits: fd_pt1
1686
1686
Child tables: ct3,
1687
- ft3
1687
+ ft3, FOREIGN
1688
1688
1689
1689
DROP FOREIGN TABLE ft2; -- ERROR
1690
1690
ERROR: cannot drop foreign table ft2 because other objects depend on it
@@ -1716,7 +1716,7 @@ ALTER FOREIGN TABLE ft2 INHERIT fd_pt1;
1716
1716
Check constraints:
1717
1717
"fd_pt1chk1" CHECK (c1 > 0) NO INHERIT
1718
1718
"fd_pt1chk2" CHECK (c2 <> ''::text)
1719
- Child tables: ft2
1719
+ Child tables: ft2, FOREIGN
1720
1720
1721
1721
\d+ ft2
1722
1722
Foreign table "public.ft2"
@@ -1746,7 +1746,7 @@ ALTER TABLE fd_pt1 ADD CONSTRAINT fd_pt1chk3 CHECK (c2 <> '') NOT VALID;
1746
1746
c3 | date | | | | plain | |
1747
1747
Check constraints:
1748
1748
"fd_pt1chk3" CHECK (c2 <> ''::text) NOT VALID
1749
- Child tables: ft2
1749
+ Child tables: ft2, FOREIGN
1750
1750
1751
1751
\d+ ft2
1752
1752
Foreign table "public.ft2"
@@ -1773,7 +1773,7 @@ ALTER TABLE fd_pt1 VALIDATE CONSTRAINT fd_pt1chk3;
1773
1773
c3 | date | | | | plain | |
1774
1774
Check constraints:
1775
1775
"fd_pt1chk3" CHECK (c2 <> ''::text)
1776
- Child tables: ft2
1776
+ Child tables: ft2, FOREIGN
1777
1777
1778
1778
\d+ ft2
1779
1779
Foreign table "public.ft2"
@@ -1804,7 +1804,7 @@ ALTER TABLE fd_pt1 RENAME CONSTRAINT fd_pt1chk3 TO f2_check;
1804
1804
f3 | date | | | | plain | |
1805
1805
Check constraints:
1806
1806
"f2_check" CHECK (f2 <> ''::text)
1807
- Child tables: ft2
1807
+ Child tables: ft2, FOREIGN
1808
1808
1809
1809
\d+ ft2
1810
1810
Foreign table "public.ft2"
@@ -1862,7 +1862,7 @@ CREATE FOREIGN TABLE fd_pt2_1 PARTITION OF fd_pt2 FOR VALUES IN (1)
1862
1862
c2 | text | | | | extended | |
1863
1863
c3 | date | | | | plain | |
1864
1864
Partition key: LIST (c1)
1865
- Partitions: fd_pt2_1 FOR VALUES IN (1)
1865
+ Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
1866
1866
1867
1867
\d+ fd_pt2_1
1868
1868
Foreign table "public.fd_pt2_1"
@@ -1934,7 +1934,7 @@ ALTER TABLE fd_pt2 ATTACH PARTITION fd_pt2_1 FOR VALUES IN (1);
1934
1934
c2 | text | | | | extended | |
1935
1935
c3 | date | | | | plain | |
1936
1936
Partition key: LIST (c1)
1937
- Partitions: fd_pt2_1 FOR VALUES IN (1)
1937
+ Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
1938
1938
1939
1939
\d+ fd_pt2_1
1940
1940
Foreign table "public.fd_pt2_1"
@@ -1962,7 +1962,7 @@ ALTER TABLE fd_pt2_1 ADD CONSTRAINT p21chk CHECK (c2 <> '');
1962
1962
c2 | text | | | | extended | |
1963
1963
c3 | date | | | | plain | |
1964
1964
Partition key: LIST (c1)
1965
- Partitions: fd_pt2_1 FOR VALUES IN (1)
1965
+ Partitions: fd_pt2_1 FOR VALUES IN (1), FOREIGN
1966
1966
1967
1967
\d+ fd_pt2_1
1968
1968
Foreign table "public.fd_pt2_1"
0 commit comments