Commit 27217127 authored by Peter Eisentraut's avatar Peter Eisentraut

psql: Use more consistent capitalization of some output headings

parent 651902de
...@@ -44,7 +44,7 @@ DROP FUNCTION plperl_to_hstore(val internal); ...@@ -44,7 +44,7 @@ DROP FUNCTION plperl_to_hstore(val internal);
CREATE EXTENSION hstore_plperl; CREATE EXTENSION hstore_plperl;
\dx+ hstore_plperl \dx+ hstore_plperl
Objects in extension "hstore_plperl" Objects in extension "hstore_plperl"
Object Description Object description
-------------------------------------- --------------------------------------
function hstore_to_plperl(internal) function hstore_to_plperl(internal)
function plperl_to_hstore(internal) function plperl_to_hstore(internal)
...@@ -54,7 +54,7 @@ CREATE EXTENSION hstore_plperl; ...@@ -54,7 +54,7 @@ CREATE EXTENSION hstore_plperl;
ALTER EXTENSION hstore_plperl DROP TRANSFORM FOR hstore LANGUAGE plperl; ALTER EXTENSION hstore_plperl DROP TRANSFORM FOR hstore LANGUAGE plperl;
\dx+ hstore_plperl \dx+ hstore_plperl
Objects in extension "hstore_plperl" Objects in extension "hstore_plperl"
Object Description Object description
------------------------------------- -------------------------------------
function hstore_to_plperl(internal) function hstore_to_plperl(internal)
function plperl_to_hstore(internal) function plperl_to_hstore(internal)
...@@ -63,7 +63,7 @@ Objects in extension "hstore_plperl" ...@@ -63,7 +63,7 @@ Objects in extension "hstore_plperl"
ALTER EXTENSION hstore_plperl ADD TRANSFORM FOR hstore LANGUAGE plperl; ALTER EXTENSION hstore_plperl ADD TRANSFORM FOR hstore LANGUAGE plperl;
\dx+ hstore_plperl \dx+ hstore_plperl
Objects in extension "hstore_plperl" Objects in extension "hstore_plperl"
Object Description Object description
-------------------------------------- --------------------------------------
function hstore_to_plperl(internal) function hstore_to_plperl(internal)
function plperl_to_hstore(internal) function plperl_to_hstore(internal)
......
...@@ -181,7 +181,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c1 OPTIONS (column_name 'C 1'); ...@@ -181,7 +181,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c1 OPTIONS (column_name 'C 1');
ALTER FOREIGN TABLE ft2 ALTER COLUMN c1 OPTIONS (column_name 'C 1'); ALTER FOREIGN TABLE ft2 ALTER COLUMN c1 OPTIONS (column_name 'C 1');
\det+ \det+
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------+------------+-----------+--------------------------------------------------+------------- --------+------------+-----------+--------------------------------------------------+-------------
public | ft1 | loopback | (schema_name 'S 1', table_name 'T 1') | public | ft1 | loopback | (schema_name 'S 1', table_name 'T 1') |
public | ft2 | loopback | (schema_name 'S 1', table_name 'T 1') | public | ft2 | loopback | (schema_name 'S 1', table_name 'T 1') |
...@@ -6948,7 +6948,7 @@ CREATE SCHEMA import_dest1; ...@@ -6948,7 +6948,7 @@ CREATE SCHEMA import_dest1;
IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1; IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1;
\det+ import_dest1.* \det+ import_dest1.*
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------------+-------+----------+-------------------------------------------------+------------- --------------+-------+----------+-------------------------------------------------+-------------
import_dest1 | t1 | loopback | (schema_name 'import_source', table_name 't1') | import_dest1 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
import_dest1 | t2 | loopback | (schema_name 'import_source', table_name 't2') | import_dest1 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
...@@ -6960,51 +6960,51 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1; ...@@ -6960,51 +6960,51 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1;
\d import_dest1.* \d import_dest1.*
Foreign table "import_dest1.t1" Foreign table "import_dest1.t1"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
c2 | character varying | | not null | | (column_name 'c2') c2 | character varying | | not null | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't1') FDW options: (schema_name 'import_source', table_name 't1')
Foreign table "import_dest1.t2" Foreign table "import_dest1.t2"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
c2 | character varying | | | | (column_name 'c2') c2 | character varying | | | | (column_name 'c2')
c3 | text | POSIX | | | (column_name 'c3') c3 | text | POSIX | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't2') FDW options: (schema_name 'import_source', table_name 't2')
Foreign table "import_dest1.t3" Foreign table "import_dest1.t3"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+--------------------------+-----------+----------+---------+-------------------- --------+--------------------------+-----------+----------+---------+--------------------
c1 | timestamp with time zone | | | | (column_name 'c1') c1 | timestamp with time zone | | | | (column_name 'c1')
c2 | typ1 | | | | (column_name 'c2') c2 | typ1 | | | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't3') FDW options: (schema_name 'import_source', table_name 't3')
Foreign table "import_dest1.t4" Foreign table "import_dest1.t4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+---------+-----------+----------+---------+-------------------- --------+---------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't4') FDW options: (schema_name 'import_source', table_name 't4')
Foreign table "import_dest1.x 4" Foreign table "import_dest1.x 4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-----------------------+-----------+----------+---------+--------------------- --------+-----------------------+-----------+----------+---------+---------------------
c1 | double precision | | | | (column_name 'c1') c1 | double precision | | | | (column_name 'c1')
C 2 | text | | | | (column_name 'C 2') C 2 | text | | | | (column_name 'C 2')
c3 | character varying(42) | | | | (column_name 'c3') c3 | character varying(42) | | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 4') FDW options: (schema_name 'import_source', table_name 'x 4')
Foreign table "import_dest1.x 5" Foreign table "import_dest1.x 5"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+------+-----------+----------+---------+------------- --------+------+-----------+----------+---------+-------------
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 5') FDW options: (schema_name 'import_source', table_name 'x 5')
-- Options -- Options
CREATE SCHEMA import_dest2; CREATE SCHEMA import_dest2;
...@@ -7012,7 +7012,7 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2 ...@@ -7012,7 +7012,7 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2
OPTIONS (import_default 'true'); OPTIONS (import_default 'true');
\det+ import_dest2.* \det+ import_dest2.*
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------------+-------+----------+-------------------------------------------------+------------- --------------+-------+----------+-------------------------------------------------+-------------
import_dest2 | t1 | loopback | (schema_name 'import_source', table_name 't1') | import_dest2 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
import_dest2 | t2 | loopback | (schema_name 'import_source', table_name 't2') | import_dest2 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
...@@ -7024,58 +7024,58 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2 ...@@ -7024,58 +7024,58 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2
\d import_dest2.* \d import_dest2.*
Foreign table "import_dest2.t1" Foreign table "import_dest2.t1"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
c2 | character varying | | not null | | (column_name 'c2') c2 | character varying | | not null | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't1') FDW options: (schema_name 'import_source', table_name 't1')
Foreign table "import_dest2.t2" Foreign table "import_dest2.t2"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | 42 | (column_name 'c1') c1 | integer | | | 42 | (column_name 'c1')
c2 | character varying | | | | (column_name 'c2') c2 | character varying | | | | (column_name 'c2')
c3 | text | POSIX | | | (column_name 'c3') c3 | text | POSIX | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't2') FDW options: (schema_name 'import_source', table_name 't2')
Foreign table "import_dest2.t3" Foreign table "import_dest2.t3"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+--------------------------+-----------+----------+---------+-------------------- --------+--------------------------+-----------+----------+---------+--------------------
c1 | timestamp with time zone | | | now() | (column_name 'c1') c1 | timestamp with time zone | | | now() | (column_name 'c1')
c2 | typ1 | | | | (column_name 'c2') c2 | typ1 | | | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't3') FDW options: (schema_name 'import_source', table_name 't3')
Foreign table "import_dest2.t4" Foreign table "import_dest2.t4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+---------+-----------+----------+---------+-------------------- --------+---------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't4') FDW options: (schema_name 'import_source', table_name 't4')
Foreign table "import_dest2.x 4" Foreign table "import_dest2.x 4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-----------------------+-----------+----------+---------+--------------------- --------+-----------------------+-----------+----------+---------+---------------------
c1 | double precision | | | | (column_name 'c1') c1 | double precision | | | | (column_name 'c1')
C 2 | text | | | | (column_name 'C 2') C 2 | text | | | | (column_name 'C 2')
c3 | character varying(42) | | | | (column_name 'c3') c3 | character varying(42) | | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 4') FDW options: (schema_name 'import_source', table_name 'x 4')
Foreign table "import_dest2.x 5" Foreign table "import_dest2.x 5"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+------+-----------+----------+---------+------------- --------+------+-----------+----------+---------+-------------
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 5') FDW options: (schema_name 'import_source', table_name 'x 5')
CREATE SCHEMA import_dest3; CREATE SCHEMA import_dest3;
IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3 IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3
OPTIONS (import_collate 'false', import_not_null 'false'); OPTIONS (import_collate 'false', import_not_null 'false');
\det+ import_dest3.* \det+ import_dest3.*
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------------+-------+----------+-------------------------------------------------+------------- --------------+-------+----------+-------------------------------------------------+-------------
import_dest3 | t1 | loopback | (schema_name 'import_source', table_name 't1') | import_dest3 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
import_dest3 | t2 | loopback | (schema_name 'import_source', table_name 't2') | import_dest3 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
...@@ -7087,51 +7087,51 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3 ...@@ -7087,51 +7087,51 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3
\d import_dest3.* \d import_dest3.*
Foreign table "import_dest3.t1" Foreign table "import_dest3.t1"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
c2 | character varying | | | | (column_name 'c2') c2 | character varying | | | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't1') FDW options: (schema_name 'import_source', table_name 't1')
Foreign table "import_dest3.t2" Foreign table "import_dest3.t2"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-------------------+-----------+----------+---------+-------------------- --------+-------------------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
c2 | character varying | | | | (column_name 'c2') c2 | character varying | | | | (column_name 'c2')
c3 | text | | | | (column_name 'c3') c3 | text | | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't2') FDW options: (schema_name 'import_source', table_name 't2')
Foreign table "import_dest3.t3" Foreign table "import_dest3.t3"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+--------------------------+-----------+----------+---------+-------------------- --------+--------------------------+-----------+----------+---------+--------------------
c1 | timestamp with time zone | | | | (column_name 'c1') c1 | timestamp with time zone | | | | (column_name 'c1')
c2 | typ1 | | | | (column_name 'c2') c2 | typ1 | | | | (column_name 'c2')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't3') FDW options: (schema_name 'import_source', table_name 't3')
Foreign table "import_dest3.t4" Foreign table "import_dest3.t4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+---------+-----------+----------+---------+-------------------- --------+---------+-----------+----------+---------+--------------------
c1 | integer | | | | (column_name 'c1') c1 | integer | | | | (column_name 'c1')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 't4') FDW options: (schema_name 'import_source', table_name 't4')
Foreign table "import_dest3.x 4" Foreign table "import_dest3.x 4"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+-----------------------+-----------+----------+---------+--------------------- --------+-----------------------+-----------+----------+---------+---------------------
c1 | double precision | | | | (column_name 'c1') c1 | double precision | | | | (column_name 'c1')
C 2 | text | | | | (column_name 'C 2') C 2 | text | | | | (column_name 'C 2')
c3 | character varying(42) | | | | (column_name 'c3') c3 | character varying(42) | | | | (column_name 'c3')
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 4') FDW options: (schema_name 'import_source', table_name 'x 4')
Foreign table "import_dest3.x 5" Foreign table "import_dest3.x 5"
Column | Type | Collation | Nullable | Default | FDW Options Column | Type | Collation | Nullable | Default | FDW options
--------+------+-----------+----------+---------+------------- --------+------+-----------+----------+---------+-------------
Server: loopback Server: loopback
FDW Options: (schema_name 'import_source', table_name 'x 5') FDW options: (schema_name 'import_source', table_name 'x 5')
-- Check LIMIT TO and EXCEPT -- Check LIMIT TO and EXCEPT
CREATE SCHEMA import_dest4; CREATE SCHEMA import_dest4;
...@@ -7139,7 +7139,7 @@ IMPORT FOREIGN SCHEMA import_source LIMIT TO (t1, nonesuch) ...@@ -7139,7 +7139,7 @@ IMPORT FOREIGN SCHEMA import_source LIMIT TO (t1, nonesuch)
FROM SERVER loopback INTO import_dest4; FROM SERVER loopback INTO import_dest4;
\det+ import_dest4.* \det+ import_dest4.*
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------------+-------+----------+------------------------------------------------+------------- --------------+-------+----------+------------------------------------------------+-------------
import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') | import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
(1 row) (1 row)
...@@ -7148,7 +7148,7 @@ IMPORT FOREIGN SCHEMA import_source EXCEPT (t1, "x 4", nonesuch) ...@@ -7148,7 +7148,7 @@ IMPORT FOREIGN SCHEMA import_source EXCEPT (t1, "x 4", nonesuch)
FROM SERVER loopback INTO import_dest4; FROM SERVER loopback INTO import_dest4;
\det+ import_dest4.* \det+ import_dest4.*
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------------+-------+----------+-------------------------------------------------+------------- --------------+-------+----------+-------------------------------------------------+-------------
import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') | import_dest4 | t1 | loopback | (schema_name 'import_source', table_name 't1') |
import_dest4 | t2 | loopback | (schema_name 'import_source', table_name 't2') | import_dest4 | t2 | loopback | (schema_name 'import_source', table_name 't2') |
......
...@@ -1726,7 +1726,7 @@ describeOneTableDetails(const char *schemaname, ...@@ -1726,7 +1726,7 @@ describeOneTableDetails(const char *schemaname,
headers[cols++] = gettext_noop("Definition"); headers[cols++] = gettext_noop("Definition");
if (tableinfo.relkind == RELKIND_FOREIGN_TABLE && pset.sversion >= 90200) if (tableinfo.relkind == RELKIND_FOREIGN_TABLE && pset.sversion >= 90200)
headers[cols++] = gettext_noop("FDW Options"); headers[cols++] = gettext_noop("FDW options");
if (verbose) if (verbose)
{ {
...@@ -2786,7 +2786,7 @@ describeOneTableDetails(const char *schemaname, ...@@ -2786,7 +2786,7 @@ describeOneTableDetails(const char *schemaname,
ftoptions = PQgetvalue(result, 0, 1); ftoptions = PQgetvalue(result, 0, 1);
if (ftoptions && ftoptions[0] != '\0') if (ftoptions && ftoptions[0] != '\0')
{ {
printfPQExpBuffer(&buf, _("FDW Options: (%s)"), ftoptions); printfPQExpBuffer(&buf, _("FDW options: (%s)"), ftoptions);
printTableAddFooter(&cont, buf.data); printTableAddFooter(&cont, buf.data);
} }
PQclear(result); PQclear(result);
...@@ -3473,12 +3473,12 @@ listLanguages(const char *pattern, bool verbose, bool showSystem) ...@@ -3473,12 +3473,12 @@ listLanguages(const char *pattern, bool verbose, bool showSystem)
",\n NOT l.lanispl AS \"%s\",\n" ",\n NOT l.lanispl AS \"%s\",\n"
" l.lanplcallfoid::regprocedure AS \"%s\",\n" " l.lanplcallfoid::regprocedure AS \"%s\",\n"
" l.lanvalidator::regprocedure AS \"%s\",\n ", " l.lanvalidator::regprocedure AS \"%s\",\n ",
gettext_noop("Internal Language"), gettext_noop("Internal language"),
gettext_noop("Call Handler"), gettext_noop("Call handler"),
gettext_noop("Validator")); gettext_noop("Validator"));
if (pset.sversion >= 90000) if (pset.sversion >= 90000)
appendPQExpBuffer(&buf, "l.laninline::regprocedure AS \"%s\",\n ", appendPQExpBuffer(&buf, "l.laninline::regprocedure AS \"%s\",\n ",
gettext_noop("Inline Handler")); gettext_noop("Inline handler"));
printACLColumn(&buf, "l.lanacl"); printACLColumn(&buf, "l.lanacl");
} }
...@@ -4612,7 +4612,7 @@ listForeignDataWrappers(const char *pattern, bool verbose) ...@@ -4612,7 +4612,7 @@ listForeignDataWrappers(const char *pattern, bool verbose)
" quote_literal(option_value) FROM " " quote_literal(option_value) FROM "
" pg_options_to_table(fdwoptions)), ', ') || ')' " " pg_options_to_table(fdwoptions)), ', ') || ')' "
" END AS \"%s\"", " END AS \"%s\"",
gettext_noop("FDW Options")); gettext_noop("FDW options"));
if (pset.sversion >= 90100) if (pset.sversion >= 90100)
appendPQExpBuffer(&buf, appendPQExpBuffer(&buf,
...@@ -4696,7 +4696,7 @@ listForeignServers(const char *pattern, bool verbose) ...@@ -4696,7 +4696,7 @@ listForeignServers(const char *pattern, bool verbose)
" d.description AS \"%s\"", " d.description AS \"%s\"",
gettext_noop("Type"), gettext_noop("Type"),
gettext_noop("Version"), gettext_noop("Version"),
gettext_noop("FDW Options"), gettext_noop("FDW options"),
gettext_noop("Description")); gettext_noop("Description"));
} }
...@@ -4767,7 +4767,7 @@ listUserMappings(const char *pattern, bool verbose) ...@@ -4767,7 +4767,7 @@ listUserMappings(const char *pattern, bool verbose)
" quote_literal(option_value) FROM " " quote_literal(option_value) FROM "
" pg_options_to_table(umoptions)), ', ') || ')' " " pg_options_to_table(umoptions)), ', ') || ')' "
" END AS \"%s\"", " END AS \"%s\"",
gettext_noop("FDW Options")); gettext_noop("FDW options"));
appendPQExpBufferStr(&buf, "\nFROM pg_catalog.pg_user_mappings um\n"); appendPQExpBufferStr(&buf, "\nFROM pg_catalog.pg_user_mappings um\n");
...@@ -4831,7 +4831,7 @@ listForeignTables(const char *pattern, bool verbose) ...@@ -4831,7 +4831,7 @@ listForeignTables(const char *pattern, bool verbose)
" pg_options_to_table(ftoptions)), ', ') || ')' " " pg_options_to_table(ftoptions)), ', ') || ')' "
" END AS \"%s\",\n" " END AS \"%s\",\n"
" d.description AS \"%s\"", " d.description AS \"%s\"",
gettext_noop("FDW Options"), gettext_noop("FDW options"),
gettext_noop("Description")); gettext_noop("Description"));
appendPQExpBufferStr(&buf, appendPQExpBufferStr(&buf,
...@@ -5017,7 +5017,7 @@ listOneExtensionContents(const char *extname, const char *oid) ...@@ -5017,7 +5017,7 @@ listOneExtensionContents(const char *extname, const char *oid)
"FROM pg_catalog.pg_depend\n" "FROM pg_catalog.pg_depend\n"
"WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = '%s' AND deptype = 'e'\n" "WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = '%s' AND deptype = 'e'\n"
"ORDER BY 1;", "ORDER BY 1;",
gettext_noop("Object Description"), gettext_noop("Object description"),
oid); oid);
res = PSQLexec(buf.data); res = PSQLexec(buf.data);
......
...@@ -44,7 +44,7 @@ create table old_table1 (col1 serial primary key); ...@@ -44,7 +44,7 @@ create table old_table1 (col1 serial primary key);
create extension test_ext7; create extension test_ext7;
\dx+ test_ext7 \dx+ test_ext7
Objects in extension "test_ext7" Objects in extension "test_ext7"
Object Description Object description
------------------------------- -------------------------------
sequence ext7_table1_col1_seq sequence ext7_table1_col1_seq
sequence ext7_table2_col2_seq sequence ext7_table2_col2_seq
...@@ -57,7 +57,7 @@ Objects in extension "test_ext7" ...@@ -57,7 +57,7 @@ Objects in extension "test_ext7"
alter extension test_ext7 update to '2.0'; alter extension test_ext7 update to '2.0';
\dx+ test_ext7 \dx+ test_ext7
Objects in extension "test_ext7" Objects in extension "test_ext7"
Object Description Object description
------------------------------- -------------------------------
sequence ext7_table2_col2_seq sequence ext7_table2_col2_seq
table ext7_table2 table ext7_table2
...@@ -67,12 +67,12 @@ Objects in extension "test_ext7" ...@@ -67,12 +67,12 @@ Objects in extension "test_ext7"
create extension test_ext8; create extension test_ext8;
-- \dx+ would expose a variable pg_temp_nn schema name, so we can't use it here -- \dx+ would expose a variable pg_temp_nn schema name, so we can't use it here
select regexp_replace(pg_describe_object(classid, objid, objsubid), select regexp_replace(pg_describe_object(classid, objid, objsubid),
'pg_temp_\d+', 'pg_temp', 'g') as "Object Description" 'pg_temp_\d+', 'pg_temp', 'g') as "Object description"
from pg_depend from pg_depend
where refclassid = 'pg_extension'::regclass and deptype = 'e' and where refclassid = 'pg_extension'::regclass and deptype = 'e' and
refobjid = (select oid from pg_extension where extname = 'test_ext8') refobjid = (select oid from pg_extension where extname = 'test_ext8')
order by 1; order by 1;
Object Description Object description
----------------------------------------- -----------------------------------------
function ext8_even(posint) function ext8_even(posint)
function pg_temp.ext8_temp_even(posint) function pg_temp.ext8_temp_even(posint)
...@@ -85,12 +85,12 @@ order by 1; ...@@ -85,12 +85,12 @@ order by 1;
drop extension test_ext8; drop extension test_ext8;
create extension test_ext8; create extension test_ext8;
select regexp_replace(pg_describe_object(classid, objid, objsubid), select regexp_replace(pg_describe_object(classid, objid, objsubid),
'pg_temp_\d+', 'pg_temp', 'g') as "Object Description" 'pg_temp_\d+', 'pg_temp', 'g') as "Object description"
from pg_depend from pg_depend
where refclassid = 'pg_extension'::regclass and deptype = 'e' and where refclassid = 'pg_extension'::regclass and deptype = 'e' and
refobjid = (select oid from pg_extension where extname = 'test_ext8') refobjid = (select oid from pg_extension where extname = 'test_ext8')
order by 1; order by 1;
Object Description Object description
----------------------------------------- -----------------------------------------
function ext8_even(posint) function ext8_even(posint)
function pg_temp.ext8_temp_even(posint) function pg_temp.ext8_temp_even(posint)
...@@ -112,7 +112,7 @@ end'; ...@@ -112,7 +112,7 @@ end';
-- extension should now contain no temp objects -- extension should now contain no temp objects
\dx+ test_ext8 \dx+ test_ext8
Objects in extension "test_ext8" Objects in extension "test_ext8"
Object Description Object description
---------------------------- ----------------------------
function ext8_even(posint) function ext8_even(posint)
table ext8_table1 table ext8_table1
......
...@@ -31,7 +31,7 @@ create extension test_ext8; ...@@ -31,7 +31,7 @@ create extension test_ext8;
-- \dx+ would expose a variable pg_temp_nn schema name, so we can't use it here -- \dx+ would expose a variable pg_temp_nn schema name, so we can't use it here
select regexp_replace(pg_describe_object(classid, objid, objsubid), select regexp_replace(pg_describe_object(classid, objid, objsubid),
'pg_temp_\d+', 'pg_temp', 'g') as "Object Description" 'pg_temp_\d+', 'pg_temp', 'g') as "Object description"
from pg_depend from pg_depend
where refclassid = 'pg_extension'::regclass and deptype = 'e' and where refclassid = 'pg_extension'::regclass and deptype = 'e' and
refobjid = (select oid from pg_extension where extname = 'test_ext8') refobjid = (select oid from pg_extension where extname = 'test_ext8')
...@@ -42,7 +42,7 @@ drop extension test_ext8; ...@@ -42,7 +42,7 @@ drop extension test_ext8;
create extension test_ext8; create extension test_ext8;
select regexp_replace(pg_describe_object(classid, objid, objsubid), select regexp_replace(pg_describe_object(classid, objid, objsubid),
'pg_temp_\d+', 'pg_temp', 'g') as "Object Description" 'pg_temp_\d+', 'pg_temp', 'g') as "Object description"
from pg_depend from pg_depend
where refclassid = 'pg_extension'::regclass and deptype = 'e' and where refclassid = 'pg_extension'::regclass and deptype = 'e' and
refobjid = (select oid from pg_extension where extname = 'test_ext8') refobjid = (select oid from pg_extension where extname = 'test_ext8')
......
...@@ -53,7 +53,7 @@ DROP FOREIGN DATA WRAPPER foo; ...@@ -53,7 +53,7 @@ DROP FOREIGN DATA WRAPPER foo;
CREATE FOREIGN DATA WRAPPER foo OPTIONS (testing '1'); CREATE FOREIGN DATA WRAPPER foo OPTIONS (testing '1');
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+---------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+---------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (testing '1') | foo | regress_foreign_data_user | - | - | | (testing '1') |
...@@ -66,7 +66,7 @@ ERROR: option "testing" provided more than once ...@@ -66,7 +66,7 @@ ERROR: option "testing" provided more than once
CREATE FOREIGN DATA WRAPPER foo OPTIONS (testing '1', another '2'); CREATE FOREIGN DATA WRAPPER foo OPTIONS (testing '1', another '2');
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+----------------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+----------------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (testing '1', another '2') | foo | regress_foreign_data_user | - | - | | (testing '1', another '2') |
...@@ -82,7 +82,7 @@ RESET ROLE; ...@@ -82,7 +82,7 @@ RESET ROLE;
CREATE FOREIGN DATA WRAPPER foo VALIDATOR postgresql_fdw_validator; CREATE FOREIGN DATA WRAPPER foo VALIDATOR postgresql_fdw_validator;
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | postgresql_fdw_validator | | | foo | regress_foreign_data_user | - | postgresql_fdw_validator | | |
...@@ -99,7 +99,7 @@ ERROR: function bar(text[], oid) does not exist ...@@ -99,7 +99,7 @@ ERROR: function bar(text[], oid) does not exist
ALTER FOREIGN DATA WRAPPER foo NO VALIDATOR; ALTER FOREIGN DATA WRAPPER foo NO VALIDATOR;
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | | foo | regress_foreign_data_user | - | - | | |
...@@ -114,7 +114,7 @@ ERROR: option "c" not found ...@@ -114,7 +114,7 @@ ERROR: option "c" not found
ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD x '1', DROP x); ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD x '1', DROP x);
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+----------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+----------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (a '1', b '2') | foo | regress_foreign_data_user | - | - | | (a '1', b '2') |
...@@ -124,7 +124,7 @@ ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD x '1', DROP x); ...@@ -124,7 +124,7 @@ ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD x '1', DROP x);
ALTER FOREIGN DATA WRAPPER foo OPTIONS (DROP a, SET b '3', ADD c '4'); ALTER FOREIGN DATA WRAPPER foo OPTIONS (DROP a, SET b '3', ADD c '4');
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+----------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+----------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (b '3', c '4') | foo | regress_foreign_data_user | - | - | | (b '3', c '4') |
...@@ -136,7 +136,7 @@ ALTER FOREIGN DATA WRAPPER foo OPTIONS (b '4'); -- ERROR ...@@ -136,7 +136,7 @@ ALTER FOREIGN DATA WRAPPER foo OPTIONS (b '4'); -- ERROR
ERROR: option "b" provided more than once ERROR: option "b" provided more than once
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-----------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-----------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (b '3', c '4', a '2') | foo | regress_foreign_data_user | - | - | | (b '3', c '4', a '2') |
...@@ -151,7 +151,7 @@ SET ROLE regress_test_role_super; ...@@ -151,7 +151,7 @@ SET ROLE regress_test_role_super;
ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD d '5'); ALTER FOREIGN DATA WRAPPER foo OPTIONS (ADD d '5');
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+------------------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+------------------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | (b '3', c '4', a '2', d '5') | foo | regress_foreign_data_user | - | - | | (b '3', c '4', a '2', d '5') |
...@@ -170,7 +170,7 @@ HINT: Must be superuser to alter a foreign-data wrapper. ...@@ -170,7 +170,7 @@ HINT: Must be superuser to alter a foreign-data wrapper.
RESET ROLE; RESET ROLE;
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+------------------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+------------------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') | foo | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') |
...@@ -180,7 +180,7 @@ RESET ROLE; ...@@ -180,7 +180,7 @@ RESET ROLE;
ALTER FOREIGN DATA WRAPPER foo RENAME TO foo1; ALTER FOREIGN DATA WRAPPER foo RENAME TO foo1;
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+------------------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+------------------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo1 | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') | foo1 | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') |
...@@ -195,7 +195,7 @@ DROP FOREIGN DATA WRAPPER IF EXISTS nonexistent; ...@@ -195,7 +195,7 @@ DROP FOREIGN DATA WRAPPER IF EXISTS nonexistent;
NOTICE: foreign-data wrapper "nonexistent" does not exist, skipping NOTICE: foreign-data wrapper "nonexistent" does not exist, skipping
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+------------------------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+------------------------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') | foo | regress_test_role_super | - | - | | (b '3', c '4', a '2', d '5') |
...@@ -211,7 +211,7 @@ RESET ROLE; ...@@ -211,7 +211,7 @@ RESET ROLE;
DROP ROLE regress_test_role_super; DROP ROLE regress_test_role_super;
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
postgresql | regress_foreign_data_user | - | postgresql_fdw_validator | | | postgresql | regress_foreign_data_user | - | postgresql_fdw_validator | | |
...@@ -227,7 +227,7 @@ CREATE USER MAPPING IF NOT EXISTS FOR current_user SERVER s1; -- NOTICE ...@@ -227,7 +227,7 @@ CREATE USER MAPPING IF NOT EXISTS FOR current_user SERVER s1; -- NOTICE
NOTICE: user mapping for "regress_foreign_data_user" already exists for server s1, skipping NOTICE: user mapping for "regress_foreign_data_user" already exists for server s1, skipping
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
foo | regress_foreign_data_user | - | - | | | foo | regress_foreign_data_user | - | - | | |
...@@ -236,14 +236,14 @@ NOTICE: user mapping for "regress_foreign_data_user" already exists for server ...@@ -236,14 +236,14 @@ NOTICE: user mapping for "regress_foreign_data_user" already exists for server
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------+------+---------+-------------+---------------- ------+---------------------------+----------------------+-------------------+------+---------+-------------+----------------
s1 | regress_foreign_data_user | foo | | | | | foreign server s1 | regress_foreign_data_user | foo | | | | | foreign server
(1 row) (1 row)
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+---------------------------+------------- --------+---------------------------+-------------
s1 | regress_foreign_data_user | s1 | regress_foreign_data_user |
(1 row) (1 row)
...@@ -263,7 +263,7 @@ DETAIL: drop cascades to server s1 ...@@ -263,7 +263,7 @@ DETAIL: drop cascades to server s1
drop cascades to user mapping for regress_foreign_data_user on server s1 drop cascades to user mapping for regress_foreign_data_user on server s1
\dew+ \dew+
List of foreign-data wrappers List of foreign-data wrappers
Name | Owner | Handler | Validator | Access privileges | FDW Options | Description Name | Owner | Handler | Validator | Access privileges | FDW options | Description
------------+---------------------------+---------+--------------------------+-------------------+-------------+------------- ------------+---------------------------+---------+--------------------------+-------------------+-------------+-------------
dummy | regress_foreign_data_user | - | - | | | useless dummy | regress_foreign_data_user | - | - | | | useless
postgresql | regress_foreign_data_user | - | postgresql_fdw_validator | | | postgresql | regress_foreign_data_user | - | postgresql_fdw_validator | | |
...@@ -271,13 +271,13 @@ drop cascades to user mapping for regress_foreign_data_user on server s1 ...@@ -271,13 +271,13 @@ drop cascades to user mapping for regress_foreign_data_user on server s1
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+-------+----------------------+-------------------+------+---------+-------------+------------- ------+-------+----------------------+-------------------+------+---------+-------------+-------------
(0 rows) (0 rows)
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+-----------+------------- --------+-----------+-------------
(0 rows) (0 rows)
...@@ -302,7 +302,7 @@ HINT: Valid options in this context are: authtype, service, connect_timeout, db ...@@ -302,7 +302,7 @@ HINT: Valid options in this context are: authtype, service, connect_timeout, db
CREATE SERVER s8 FOREIGN DATA WRAPPER postgresql OPTIONS (host 'localhost', dbname 's8db'); CREATE SERVER s8 FOREIGN DATA WRAPPER postgresql OPTIONS (host 'localhost', dbname 's8db');
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+------------- ------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+-------------
s1 | regress_foreign_data_user | foo | | | | | s1 | regress_foreign_data_user | foo | | | | |
s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') | s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') |
...@@ -324,7 +324,7 @@ CREATE SERVER t1 FOREIGN DATA WRAPPER foo; ...@@ -324,7 +324,7 @@ CREATE SERVER t1 FOREIGN DATA WRAPPER foo;
RESET ROLE; RESET ROLE;
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+------------- ------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+-------------
s1 | regress_foreign_data_user | foo | | | | | s1 | regress_foreign_data_user | foo | | | | |
s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') | s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') |
...@@ -348,7 +348,7 @@ SET ROLE regress_test_role; ...@@ -348,7 +348,7 @@ SET ROLE regress_test_role;
CREATE SERVER t2 FOREIGN DATA WRAPPER foo; CREATE SERVER t2 FOREIGN DATA WRAPPER foo;
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+------------- ------+---------------------------+----------------------+-------------------+--------+---------+-----------------------------------+-------------
s1 | regress_foreign_data_user | foo | | | | | s1 | regress_foreign_data_user | foo | | | | |
s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') | s2 | regress_foreign_data_user | foo | | | | (host 'a', dbname 'b') |
...@@ -378,7 +378,7 @@ GRANT USAGE ON FOREIGN SERVER s1 TO regress_test_role; ...@@ -378,7 +378,7 @@ GRANT USAGE ON FOREIGN SERVER s1 TO regress_test_role;
GRANT USAGE ON FOREIGN SERVER s6 TO regress_test_role2 WITH GRANT OPTION; GRANT USAGE ON FOREIGN SERVER s6 TO regress_test_role2 WITH GRANT OPTION;
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+-----------------------------------+------------- ------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+-----------------------------------+-------------
s1 | regress_foreign_data_user | foo | regress_foreign_data_user=U/regress_foreign_data_user+| | 1.0 | (servername 's1') | s1 | regress_foreign_data_user | foo | regress_foreign_data_user=U/regress_foreign_data_user+| | 1.0 | (servername 's1') |
| | | regress_test_role=U/regress_foreign_data_user | | | | | | | regress_test_role=U/regress_foreign_data_user | | | |
...@@ -429,7 +429,7 @@ DETAIL: owner of server s1 ...@@ -429,7 +429,7 @@ DETAIL: owner of server s1
privileges for foreign-data wrapper foo privileges for foreign-data wrapper foo
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+--------------------------------------+------------- ------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+--------------------------------------+-------------
s1 | regress_test_indirect | foo | regress_test_indirect=U/regress_test_indirect | | 1.1 | (servername 's1') | s1 | regress_test_indirect | foo | regress_test_indirect=U/regress_test_indirect | | 1.1 | (servername 's1') |
s2 | regress_foreign_data_user | foo | | | 1.1 | (host 'a', dbname 'b') | s2 | regress_foreign_data_user | foo | | | 1.1 | (host 'a', dbname 'b') |
...@@ -447,7 +447,7 @@ privileges for foreign-data wrapper foo ...@@ -447,7 +447,7 @@ privileges for foreign-data wrapper foo
ALTER SERVER s8 RENAME to s8new; ALTER SERVER s8 RENAME to s8new;
\des+ \des+
List of foreign servers List of foreign servers
Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW Options | Description Name | Owner | Foreign-data wrapper | Access privileges | Type | Version | FDW options | Description
-------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+--------------------------------------+------------- -------+---------------------------+----------------------+-------------------------------------------------------+--------+---------+--------------------------------------+-------------
s1 | regress_test_indirect | foo | regress_test_indirect=U/regress_test_indirect | | 1.1 | (servername 's1') | s1 | regress_test_indirect | foo | regress_test_indirect=U/regress_test_indirect | | 1.1 | (servername 's1') |
s2 | regress_foreign_data_user | foo | | | 1.1 | (host 'a', dbname 'b') | s2 | regress_foreign_data_user | foo | | | 1.1 | (host 'a', dbname 'b') |
...@@ -615,7 +615,7 @@ ALTER USER MAPPING FOR public SERVER t1 OPTIONS (ADD modified '1'); ...@@ -615,7 +615,7 @@ ALTER USER MAPPING FOR public SERVER t1 OPTIONS (ADD modified '1');
RESET ROLE; RESET ROLE;
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+---------------------------+---------------------------------- --------+---------------------------+----------------------------------
s4 | public | ("this mapping" 'is public') s4 | public | ("this mapping" 'is public')
s4 | regress_foreign_data_user | s4 | regress_foreign_data_user |
...@@ -709,7 +709,7 @@ COMMENT ON FOREIGN TABLE ft1 IS 'ft1'; ...@@ -709,7 +709,7 @@ 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 | Collation | Nullable | Default | 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 | |
...@@ -718,11 +718,11 @@ Check constraints: ...@@ -718,11 +718,11 @@ 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)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
\det+ \det+
List of foreign tables List of foreign tables
Schema | Table | Server | FDW Options | Description Schema | Table | Server | FDW options | Description
--------+-------+--------+-------------------------------------------------+------------- --------+-------+--------+-------------------------------------------------+-------------
public | ft1 | s0 | (delimiter ',', quote '"', "be quoted" 'value') | ft1 public | ft1 | s0 | (delimiter ',', quote '"', "be quoted" 'value') | ft1
(1 row) (1 row)
...@@ -764,7 +764,7 @@ ALTER FOREIGN TABLE ft1 ALTER COLUMN c8 SET STATISTICS -1; ...@@ -764,7 +764,7 @@ 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 | Collation | Nullable | Default | 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 | |
...@@ -780,7 +780,7 @@ Check constraints: ...@@ -780,7 +780,7 @@ 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)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
-- can't change the column type if it's used elsewhere -- can't change the column type if it's used elsewhere
CREATE TABLE use_ft1_column_type (x ft1); CREATE TABLE use_ft1_column_type (x ft1);
...@@ -814,7 +814,7 @@ ALTER FOREIGN TABLE foreign_schema.ft1 RENAME c1 TO foreign_column_1; ...@@ -814,7 +814,7 @@ 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 | Collation | Nullable | Default | 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')
...@@ -829,7 +829,7 @@ Check constraints: ...@@ -829,7 +829,7 @@ 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)
Server: s0 Server: s0
FDW Options: (quote '~', "be quoted" 'value', escape '@') FDW options: (quote '~', "be quoted" 'value', escape '@')
-- alter noexisting table -- alter noexisting table
ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 ADD COLUMN c4 integer; ALTER FOREIGN TABLE IF EXISTS doesnt_exist_ft1 ADD COLUMN c4 integer;
...@@ -1208,7 +1208,7 @@ GRANT USAGE ON FOREIGN SERVER s10 TO regress_unprivileged_role; ...@@ -1208,7 +1208,7 @@ GRANT USAGE ON FOREIGN SERVER s10 TO regress_unprivileged_role;
-- owner of server can see option fields -- owner of server can see option fields
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+---------------------------+------------------- --------+---------------------------+-------------------
s10 | public | ("user" 'secret') s10 | public | ("user" 'secret')
s4 | regress_foreign_data_user | s4 | regress_foreign_data_user |
...@@ -1224,7 +1224,7 @@ RESET ROLE; ...@@ -1224,7 +1224,7 @@ RESET ROLE;
-- superuser can see option fields -- superuser can see option fields
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+---------------------------+--------------------- --------+---------------------------+---------------------
s10 | public | ("user" 'secret') s10 | public | ("user" 'secret')
s4 | regress_foreign_data_user | s4 | regress_foreign_data_user |
...@@ -1240,7 +1240,7 @@ RESET ROLE; ...@@ -1240,7 +1240,7 @@ RESET ROLE;
SET ROLE regress_unprivileged_role; SET ROLE regress_unprivileged_role;
\deu+ \deu+
List of user mappings List of user mappings
Server | User name | FDW Options Server | User name | FDW options
--------+---------------------------+------------- --------+---------------------------+-------------
s10 | public | s10 | public |
s4 | regress_foreign_data_user | s4 | regress_foreign_data_user |
...@@ -1318,13 +1318,13 @@ Child tables: ft2 ...@@ -1318,13 +1318,13 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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
DROP FOREIGN TABLE ft2; DROP FOREIGN TABLE ft2;
...@@ -1343,13 +1343,13 @@ CREATE FOREIGN TABLE ft2 ( ...@@ -1343,13 +1343,13 @@ 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 | Collation | Nullable | Default | 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
...@@ -1363,13 +1363,13 @@ Child tables: ft2 ...@@ -1363,13 +1363,13 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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
CREATE TABLE ct3() INHERITS(ft2); CREATE TABLE ct3() INHERITS(ft2);
...@@ -1384,13 +1384,13 @@ NOTICE: merging column "c2" with inherited definition ...@@ -1384,13 +1384,13 @@ 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 | Collation | Nullable | Default | 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
Child tables: ct3, Child tables: ct3,
ft3 ft3
...@@ -1406,7 +1406,7 @@ Inherits: ft2 ...@@ -1406,7 +1406,7 @@ Inherits: ft2
\d+ ft3 \d+ ft3
Foreign table "public.ft3" Foreign table "public.ft3"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1436,7 +1436,7 @@ Child tables: ft2 ...@@ -1436,7 +1436,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1447,7 +1447,7 @@ Child tables: ft2 ...@@ -1447,7 +1447,7 @@ Child tables: ft2
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
Child tables: ct3, Child tables: ct3,
ft3 ft3
...@@ -1468,7 +1468,7 @@ Inherits: ft2 ...@@ -1468,7 +1468,7 @@ Inherits: ft2
\d+ ft3 \d+ ft3
Foreign table "public.ft3" Foreign table "public.ft3"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1510,7 +1510,7 @@ Child tables: ft2 ...@@ -1510,7 +1510,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1521,7 +1521,7 @@ Child tables: ft2 ...@@ -1521,7 +1521,7 @@ Child tables: ft2
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
Child tables: ct3, Child tables: ct3,
ft3 ft3
...@@ -1543,13 +1543,13 @@ Child tables: ft2 ...@@ -1543,13 +1543,13 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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
Child tables: ct3, Child tables: ct3,
ft3 ft3
...@@ -1583,7 +1583,7 @@ Child tables: ft2 ...@@ -1583,7 +1583,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1591,7 +1591,7 @@ Child tables: ft2 ...@@ -1591,7 +1591,7 @@ Child tables: ft2
Check constraints: Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
Child tables: ct3, Child tables: ct3,
ft3 ft3
...@@ -1630,7 +1630,7 @@ Child tables: ft2 ...@@ -1630,7 +1630,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1638,7 +1638,7 @@ Child tables: ft2 ...@@ -1638,7 +1638,7 @@ Child tables: ft2
Check constraints: Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
-- drop constraints recursively -- drop constraints recursively
...@@ -1660,7 +1660,7 @@ Child tables: ft2 ...@@ -1660,7 +1660,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1669,7 +1669,7 @@ Check constraints: ...@@ -1669,7 +1669,7 @@ Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
"pt1chk3" CHECK (c2 <> ''::text) NOT VALID "pt1chk3" CHECK (c2 <> ''::text) NOT VALID
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
-- VALIDATE CONSTRAINT need do nothing on foreign tables -- VALIDATE CONSTRAINT need do nothing on foreign tables
...@@ -1687,7 +1687,7 @@ Child tables: ft2 ...@@ -1687,7 +1687,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1696,7 +1696,7 @@ Check constraints: ...@@ -1696,7 +1696,7 @@ Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
"pt1chk3" CHECK (c2 <> ''::text) "pt1chk3" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
-- OID system column -- OID system column
...@@ -1715,7 +1715,7 @@ Has OIDs: yes ...@@ -1715,7 +1715,7 @@ Has OIDs: yes
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1724,7 +1724,7 @@ Check constraints: ...@@ -1724,7 +1724,7 @@ Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
"pt1chk3" CHECK (c2 <> ''::text) "pt1chk3" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
Has OIDs: yes Has OIDs: yes
...@@ -1744,7 +1744,7 @@ Child tables: ft2 ...@@ -1744,7 +1744,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1753,7 +1753,7 @@ Check constraints: ...@@ -1753,7 +1753,7 @@ Check constraints:
"pt1chk2" CHECK (c2 <> ''::text) "pt1chk2" CHECK (c2 <> ''::text)
"pt1chk3" CHECK (c2 <> ''::text) "pt1chk3" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
-- changes name of an attribute recursively -- changes name of an attribute recursively
...@@ -1775,7 +1775,7 @@ Child tables: ft2 ...@@ -1775,7 +1775,7 @@ Child tables: ft2
\d+ ft2 \d+ ft2
Foreign table "public.ft2" Foreign table "public.ft2"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1784,7 +1784,7 @@ Check constraints: ...@@ -1784,7 +1784,7 @@ Check constraints:
"f2_check" CHECK (f2 <> ''::text) "f2_check" CHECK (f2 <> ''::text)
"pt1chk2" CHECK (f2 <> ''::text) "pt1chk2" CHECK (f2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
Inherits: pt1 Inherits: pt1
-- TRUNCATE doesn't work on foreign tables, either directly or recursively -- TRUNCATE doesn't work on foreign tables, either directly or recursively
...@@ -1838,7 +1838,7 @@ Partitions: pt2_1 FOR VALUES IN (1) ...@@ -1838,7 +1838,7 @@ Partitions: pt2_1 FOR VALUES IN (1)
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1846,7 +1846,7 @@ Partitions: pt2_1 FOR VALUES IN (1) ...@@ -1846,7 +1846,7 @@ Partitions: pt2_1 FOR VALUES IN (1)
Partition of: pt2 FOR VALUES IN (1) Partition of: pt2 FOR VALUES IN (1)
Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1]))) Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1])))
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
-- partition cannot have additional columns -- partition cannot have additional columns
DROP FOREIGN TABLE pt2_1; DROP FOREIGN TABLE pt2_1;
...@@ -1858,14 +1858,14 @@ CREATE FOREIGN TABLE pt2_1 ( ...@@ -1858,14 +1858,14 @@ CREATE FOREIGN TABLE pt2_1 (
) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); ) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value');
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | character(1) | | | | | extended | | c4 | character(1) | | | | | extended | |
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR
ERROR: table "pt2_1" contains column "c4" not found in parent "pt2" ERROR: table "pt2_1" contains column "c4" not found in parent "pt2"
...@@ -1887,13 +1887,13 @@ CREATE FOREIGN TABLE pt2_1 ( ...@@ -1887,13 +1887,13 @@ CREATE FOREIGN TABLE pt2_1 (
) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value'); ) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value');
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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')
-- no attach partition validation occurs for foreign tables -- no attach partition validation occurs for foreign tables
ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1);
...@@ -1909,7 +1909,7 @@ Partitions: pt2_1 FOR VALUES IN (1) ...@@ -1909,7 +1909,7 @@ Partitions: pt2_1 FOR VALUES IN (1)
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1917,7 +1917,7 @@ Partitions: pt2_1 FOR VALUES IN (1) ...@@ -1917,7 +1917,7 @@ Partitions: pt2_1 FOR VALUES IN (1)
Partition of: pt2 FOR VALUES IN (1) Partition of: pt2 FOR VALUES IN (1)
Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1]))) Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1])))
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
-- cannot add column to a partition -- cannot add column to a partition
ALTER TABLE pt2_1 ADD c4 char; ALTER TABLE pt2_1 ADD c4 char;
...@@ -1937,7 +1937,7 @@ Partitions: pt2_1 FOR VALUES IN (1) ...@@ -1937,7 +1937,7 @@ Partitions: pt2_1 FOR VALUES IN (1)
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1947,7 +1947,7 @@ Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1]))) ...@@ -1947,7 +1947,7 @@ Partition constraint: ((c1 IS NOT NULL) AND (c1 = ANY (ARRAY[1])))
Check constraints: Check constraints:
"p21chk" CHECK (c2 <> ''::text) "p21chk" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
-- cannot drop inherited NOT NULL constraint from a partition -- cannot drop inherited NOT NULL constraint from a partition
ALTER TABLE pt2_1 ALTER c1 DROP NOT NULL; ALTER TABLE pt2_1 ALTER c1 DROP NOT NULL;
...@@ -1966,7 +1966,7 @@ Partition key: LIST (c1) ...@@ -1966,7 +1966,7 @@ Partition key: LIST (c1)
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | |
...@@ -1974,7 +1974,7 @@ Partition key: LIST (c1) ...@@ -1974,7 +1974,7 @@ Partition key: LIST (c1)
Check constraints: Check constraints:
"p21chk" CHECK (c2 <> ''::text) "p21chk" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR
ERROR: column "c2" in child table must be marked NOT NULL ERROR: column "c2" in child table must be marked NOT NULL
...@@ -1995,7 +1995,7 @@ Check constraints: ...@@ -1995,7 +1995,7 @@ Check constraints:
\d+ pt2_1 \d+ pt2_1
Foreign table "public.pt2_1" Foreign table "public.pt2_1"
Column | Type | Collation | Nullable | Default | 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 | | not null | | | extended | | c2 | text | | not null | | | extended | |
...@@ -2003,7 +2003,7 @@ Check constraints: ...@@ -2003,7 +2003,7 @@ Check constraints:
Check constraints: Check constraints:
"p21chk" CHECK (c2 <> ''::text) "p21chk" CHECK (c2 <> ''::text)
Server: s0 Server: s0
FDW Options: (delimiter ',', quote '"', "be quoted" 'value') FDW options: (delimiter ',', quote '"', "be quoted" 'value')
ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR ALTER TABLE pt2 ATTACH PARTITION pt2_1 FOR VALUES IN (1); -- ERROR
ERROR: child table is missing constraint "pt2chk1" ERROR: child table is missing constraint "pt2chk1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment