|
|
@ -703,11 +703,11 @@ COMMENT ON FOREIGN TABLE ft1 IS 'ft1'; |
|
|
|
COMMENT ON COLUMN ft1.c1 IS 'ft1.c1'; |
|
|
|
COMMENT ON COLUMN ft1.c1 IS 'ft1.c1'; |
|
|
|
\d+ ft1 |
|
|
|
\d+ ft1 |
|
|
|
Foreign table "public.ft1" |
|
|
|
Foreign table "public.ft1" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+--------------------------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+--------------------------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | ("param 1" 'val1') | plain | | ft1.c1 |
|
|
|
c1 | integer | | not null | | ("param 1" 'val1') | plain | | ft1.c1 |
|
|
|
c2 | text | | (param2 'val2', param3 'val3') | extended | | |
|
|
|
c2 | text | | | | (param2 'val2', param3 'val3') | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | 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) |
|
|
@ -758,18 +758,18 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET STATISTICS -1; |
|
|
|
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET STORAGE PLAIN; |
|
|
|
ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET STORAGE PLAIN; |
|
|
|
\d+ ft1 |
|
|
|
\d+ ft1 |
|
|
|
Foreign table "public.ft1" |
|
|
|
Foreign table "public.ft1" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+--------------------------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+--------------------------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | ("param 1" 'val1') | plain | 10000 | |
|
|
|
c1 | integer | | not null | | ("param 1" 'val1') | plain | 10000 | |
|
|
|
c2 | text | | (param2 'val2', param3 'val3') | extended | | |
|
|
|
c2 | text | | | | (param2 'val2', param3 'val3') | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
c4 | integer | default 0 | | plain | | |
|
|
|
c4 | integer | | | 0 | | plain | | |
|
|
|
c5 | integer | | | plain | | |
|
|
|
c5 | integer | | | | | plain | | |
|
|
|
c6 | integer | not null | | plain | | |
|
|
|
c6 | integer | | not null | | | plain | | |
|
|
|
c7 | integer | | (p1 'v1', p2 'v2') | plain | | |
|
|
|
c7 | integer | | | | (p1 'v1', p2 'v2') | plain | | |
|
|
|
c8 | text | | (p2 'V2') | plain | | |
|
|
|
c8 | text | | | | (p2 'V2') | plain | | |
|
|
|
c9 | integer | | | plain | | |
|
|
|
c9 | integer | | | | | plain | | |
|
|
|
c10 | integer | | (p1 'v1') | plain | | |
|
|
|
c10 | integer | | | | (p1 'v1') | 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) |
|
|
@ -808,17 +808,17 @@ ALTER FOREIGN TABLE foreign_schema.ft1 RENAME c1 TO foreign_column_1; |
|
|
|
ALTER FOREIGN TABLE foreign_schema.ft1 RENAME TO foreign_table_1; |
|
|
|
ALTER FOREIGN TABLE foreign_schema.ft1 RENAME TO foreign_table_1; |
|
|
|
\d foreign_schema.foreign_table_1 |
|
|
|
\d foreign_schema.foreign_table_1 |
|
|
|
Foreign table "foreign_schema.foreign_table_1" |
|
|
|
Foreign table "foreign_schema.foreign_table_1" |
|
|
|
Column | Type | Modifiers | FDW Options |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options |
|
|
|
------------------+---------+-----------+-------------------------------- |
|
|
|
------------------+---------+-----------+----------+---------+-------------------------------- |
|
|
|
foreign_column_1 | integer | not null | ("param 1" 'val1') |
|
|
|
foreign_column_1 | integer | | not null | | ("param 1" 'val1') |
|
|
|
c2 | text | | (param2 'val2', param3 'val3') |
|
|
|
c2 | text | | | | (param2 'val2', param3 'val3') |
|
|
|
c3 | date | | |
|
|
|
c3 | date | | | | |
|
|
|
c4 | integer | default 0 | |
|
|
|
c4 | integer | | | 0 | |
|
|
|
c5 | integer | | |
|
|
|
c5 | integer | | | | |
|
|
|
c6 | integer | not null | |
|
|
|
c6 | integer | | not null | | |
|
|
|
c7 | integer | | (p1 'v1', p2 'v2') |
|
|
|
c7 | integer | | | | (p1 'v1', p2 'v2') |
|
|
|
c8 | text | | (p2 'V2') |
|
|
|
c8 | text | | | | (p2 'V2') |
|
|
|
c10 | integer | | (p1 'v1') |
|
|
|
c10 | integer | | | | (p1 'v1') |
|
|
|
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) |
|
|
@ -1242,20 +1242,20 @@ CREATE FOREIGN TABLE ft2 () INHERITS (pt1) |
|
|
|
SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); |
|
|
|
SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1263,11 +1263,11 @@ Inherits: pt1 |
|
|
|
DROP FOREIGN TABLE ft2; |
|
|
|
DROP FOREIGN TABLE ft2; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
|
|
|
|
|
|
|
|
CREATE FOREIGN TABLE ft2 ( |
|
|
|
CREATE FOREIGN TABLE ft2 ( |
|
|
|
c1 integer NOT NULL, |
|
|
|
c1 integer NOT NULL, |
|
|
@ -1276,31 +1276,31 @@ CREATE FOREIGN TABLE ft2 ( |
|
|
|
) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); |
|
|
|
) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); |
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
|
|
|
|
|
|
|
|
ALTER FOREIGN TABLE ft2 INHERIT pt1; |
|
|
|
ALTER FOREIGN TABLE ft2 INHERIT pt1; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1317,11 +1317,11 @@ NOTICE: merging column "c2" with inherited definition |
|
|
|
NOTICE: merging column "c3" with inherited definition |
|
|
|
NOTICE: merging column "c3" with inherited definition |
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1330,20 +1330,20 @@ Child tables: ct3, |
|
|
|
|
|
|
|
|
|
|
|
\d+ ct3 |
|
|
|
\d+ ct3 |
|
|
|
Table "public.ct3" |
|
|
|
Table "public.ct3" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Inherits: ft2 |
|
|
|
Inherits: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft3 |
|
|
|
\d+ ft3 |
|
|
|
Foreign table "public.ft3" |
|
|
|
Foreign table "public.ft3" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
Inherits: ft2 |
|
|
|
Inherits: ft2 |
|
|
|
|
|
|
|
|
|
|
@ -1355,30 +1355,30 @@ ALTER TABLE pt1 ADD COLUMN c7 integer NOT NULL; |
|
|
|
ALTER TABLE pt1 ADD COLUMN c8 integer; |
|
|
|
ALTER TABLE pt1 ADD COLUMN c8 integer; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
c4 | integer | | plain | | |
|
|
|
c4 | integer | | | | plain | | |
|
|
|
c5 | integer | default 0 | plain | | |
|
|
|
c5 | integer | | | 0 | plain | | |
|
|
|
c6 | integer | | plain | | |
|
|
|
c6 | integer | | | | plain | | |
|
|
|
c7 | integer | not null | plain | | |
|
|
|
c7 | integer | | not null | | plain | | |
|
|
|
c8 | integer | | plain | | |
|
|
|
c8 | integer | | | | plain | | |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
c4 | integer | | | plain | | |
|
|
|
c4 | integer | | | | | plain | | |
|
|
|
c5 | integer | default 0 | | plain | | |
|
|
|
c5 | integer | | | 0 | | plain | | |
|
|
|
c6 | integer | | | plain | | |
|
|
|
c6 | integer | | | | | plain | | |
|
|
|
c7 | integer | not null | | plain | | |
|
|
|
c7 | integer | | not null | | | plain | | |
|
|
|
c8 | integer | | | plain | | |
|
|
|
c8 | integer | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1387,30 +1387,30 @@ Child tables: ct3, |
|
|
|
|
|
|
|
|
|
|
|
\d+ ct3 |
|
|
|
\d+ ct3 |
|
|
|
Table "public.ct3" |
|
|
|
Table "public.ct3" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | | |
|
|
|
c1 | integer | | not null | | plain | | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
c4 | integer | | plain | | |
|
|
|
c4 | integer | | | | plain | | |
|
|
|
c5 | integer | default 0 | plain | | |
|
|
|
c5 | integer | | | 0 | plain | | |
|
|
|
c6 | integer | | plain | | |
|
|
|
c6 | integer | | | | plain | | |
|
|
|
c7 | integer | not null | plain | | |
|
|
|
c7 | integer | | not null | | plain | | |
|
|
|
c8 | integer | | plain | | |
|
|
|
c8 | integer | | | | plain | | |
|
|
|
Inherits: ft2 |
|
|
|
Inherits: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft3 |
|
|
|
\d+ ft3 |
|
|
|
Foreign table "public.ft3" |
|
|
|
Foreign table "public.ft3" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
c4 | integer | | | plain | | |
|
|
|
c4 | integer | | | | | plain | | |
|
|
|
c5 | integer | default 0 | | plain | | |
|
|
|
c5 | integer | | | 0 | | plain | | |
|
|
|
c6 | integer | | | plain | | |
|
|
|
c6 | integer | | | | | plain | | |
|
|
|
c7 | integer | not null | | plain | | |
|
|
|
c7 | integer | | not null | | | plain | | |
|
|
|
c8 | integer | | | plain | | |
|
|
|
c8 | integer | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
Inherits: ft2 |
|
|
|
Inherits: ft2 |
|
|
|
|
|
|
|
|
|
|
@ -1429,30 +1429,30 @@ ALTER TABLE pt1 ALTER COLUMN c8 SET STATISTICS -1; |
|
|
|
ALTER TABLE pt1 ALTER COLUMN c8 SET STORAGE EXTERNAL; |
|
|
|
ALTER TABLE pt1 ALTER COLUMN c8 SET STORAGE EXTERNAL; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
c4 | integer | default 0 | plain | | |
|
|
|
c4 | integer | | | 0 | plain | | |
|
|
|
c5 | integer | | plain | | |
|
|
|
c5 | integer | | | | plain | | |
|
|
|
c6 | integer | not null | plain | | |
|
|
|
c6 | integer | | not null | | plain | | |
|
|
|
c7 | integer | | plain | | |
|
|
|
c7 | integer | | | | plain | | |
|
|
|
c8 | text | | external | | |
|
|
|
c8 | text | | | | external | | |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | 10000 | |
|
|
|
c1 | integer | | not null | | | plain | 10000 | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
c4 | integer | default 0 | | plain | | |
|
|
|
c4 | integer | | | 0 | | plain | | |
|
|
|
c5 | integer | | | plain | | |
|
|
|
c5 | integer | | | | | plain | | |
|
|
|
c6 | integer | not null | | plain | | |
|
|
|
c6 | integer | | not null | | | plain | | |
|
|
|
c7 | integer | | | plain | | |
|
|
|
c7 | integer | | | | | plain | | |
|
|
|
c8 | text | | | external | | |
|
|
|
c8 | text | | | | | external | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1467,20 +1467,20 @@ ALTER TABLE pt1 DROP COLUMN c7; |
|
|
|
ALTER TABLE pt1 DROP COLUMN c8; |
|
|
|
ALTER TABLE pt1 DROP COLUMN c8; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | 10000 | |
|
|
|
c1 | integer | | not null | | | plain | 10000 | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') |
|
|
|
Inherits: pt1 |
|
|
|
Inherits: pt1 |
|
|
@ -1504,11 +1504,11 @@ SELECT relname, conname, contype, conislocal, coninhcount, connoinherit |
|
|
|
-- child does not inherit NO INHERIT constraints |
|
|
|
-- child does not inherit NO INHERIT constraints |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk1" CHECK (c1 > 0) NO INHERIT |
|
|
|
"pt1chk1" CHECK (c1 > 0) NO INHERIT |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
@ -1516,11 +1516,11 @@ Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | 10000 | |
|
|
|
c1 | integer | | not null | | | plain | 10000 | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
@ -1551,11 +1551,11 @@ ALTER FOREIGN TABLE ft2 INHERIT pt1; |
|
|
|
-- child does not inherit NO INHERIT constraints |
|
|
|
-- child does not inherit NO INHERIT constraints |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk1" CHECK (c1 > 0) NO INHERIT |
|
|
|
"pt1chk1" CHECK (c1 > 0) NO INHERIT |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
@ -1563,11 +1563,11 @@ Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
Server: s0 |
|
|
|
Server: s0 |
|
|
@ -1582,22 +1582,22 @@ INSERT INTO pt1 VALUES (1, 'pt1'::text, '1994-01-01'::date); |
|
|
|
ALTER TABLE pt1 ADD CONSTRAINT pt1chk3 CHECK (c2 <> '') NOT VALID; |
|
|
|
ALTER TABLE pt1 ADD CONSTRAINT pt1chk3 CHECK (c2 <> '') NOT VALID; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) NOT VALID |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) NOT VALID |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) NOT VALID |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) NOT VALID |
|
|
@ -1609,22 +1609,22 @@ Inherits: pt1 |
|
|
|
ALTER TABLE pt1 VALIDATE CONSTRAINT pt1chk3; |
|
|
|
ALTER TABLE pt1 VALIDATE CONSTRAINT pt1chk3; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
@ -1636,11 +1636,11 @@ Inherits: pt1 |
|
|
|
ALTER TABLE pt1 SET WITH OIDS; |
|
|
|
ALTER TABLE pt1 SET WITH OIDS; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
@ -1648,11 +1648,11 @@ Has OIDs: yes |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
@ -1666,22 +1666,22 @@ ERROR: cannot drop inherited column "oid" |
|
|
|
ALTER TABLE pt1 SET WITHOUT OIDS; |
|
|
|
ALTER TABLE pt1 SET WITHOUT OIDS; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | plain | 10000 | |
|
|
|
c1 | integer | | not null | | plain | 10000 | |
|
|
|
c2 | text | | extended | | |
|
|
|
c2 | text | | | | extended | | |
|
|
|
c3 | date | | plain | | |
|
|
|
c3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
c1 | integer | not null | | plain | | |
|
|
|
c1 | integer | | not null | | | plain | | |
|
|
|
c2 | text | | | extended | | |
|
|
|
c2 | text | | | | | extended | | |
|
|
|
c3 | date | | | plain | | |
|
|
|
c3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
|
"pt1chk3" CHECK (c2 <> ''::text) |
|
|
@ -1697,22 +1697,22 @@ ALTER TABLE pt1 RENAME COLUMN c3 TO f3; |
|
|
|
ALTER TABLE pt1 RENAME CONSTRAINT pt1chk3 TO f2_check; |
|
|
|
ALTER TABLE pt1 RENAME CONSTRAINT pt1chk3 TO f2_check; |
|
|
|
\d+ pt1 |
|
|
|
\d+ pt1 |
|
|
|
Table "public.pt1" |
|
|
|
Table "public.pt1" |
|
|
|
Column | Type | Modifiers | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+----------+--------------+------------- |
|
|
|
f1 | integer | not null | plain | 10000 | |
|
|
|
f1 | integer | | not null | | plain | 10000 | |
|
|
|
f2 | text | | extended | | |
|
|
|
f2 | text | | | | extended | | |
|
|
|
f3 | date | | plain | | |
|
|
|
f3 | date | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"f2_check" CHECK (f2 <> ''::text) |
|
|
|
"f2_check" CHECK (f2 <> ''::text) |
|
|
|
Child tables: ft2 |
|
|
|
Child tables: ft2 |
|
|
|
|
|
|
|
|
|
|
|
\d+ ft2 |
|
|
|
\d+ ft2 |
|
|
|
Foreign table "public.ft2" |
|
|
|
Foreign table "public.ft2" |
|
|
|
Column | Type | Modifiers | FDW Options | Storage | Stats target | Description |
|
|
|
Column | Type | Collation | Nullable | Default | FDW Options | Storage | Stats target | Description |
|
|
|
--------+---------+-----------+-------------+----------+--------------+------------- |
|
|
|
--------+---------+-----------+----------+---------+-------------+----------+--------------+------------- |
|
|
|
f1 | integer | not null | | plain | | |
|
|
|
f1 | integer | | not null | | | plain | | |
|
|
|
f2 | text | | | extended | | |
|
|
|
f2 | text | | | | | extended | | |
|
|
|
f3 | date | | | plain | | |
|
|
|
f3 | date | | | | | plain | | |
|
|
|
Check constraints: |
|
|
|
Check constraints: |
|
|
|
"f2_check" CHECK (f2 <> ''::text) |
|
|
|
"f2_check" CHECK (f2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (f2 <> ''::text) |
|
|
|
"pt1chk2" CHECK (f2 <> ''::text) |
|
|
|