diff options
author | Peter Eisentraut | 2016-11-03 16:00:00 +0000 |
---|---|---|
committer | Peter Eisentraut | 2016-11-03 18:02:46 +0000 |
commit | a0f357e570ce01cf017f02d9f05ab2272663d695 (patch) | |
tree | 85d179f232cb861b6f4924a193861101f03b0b64 /contrib | |
parent | 1d15d0db50a5f39ab69c1fe60f2d5dcc7e2ddb9c (diff) |
psql: Split up "Modifiers" column in \d and \dD
Make separate columns "Collation", "Nullable", "Default".
Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/earthdistance/expected/earthdistance.out | 8 | ||||
-rw-r--r-- | contrib/postgres_fdw/expected/postgres_fdw.out | 150 | ||||
-rw-r--r-- | contrib/test_decoding/expected/ddl.out | 50 |
3 files changed, 104 insertions, 104 deletions
diff --git a/contrib/earthdistance/expected/earthdistance.out b/contrib/earthdistance/expected/earthdistance.out index e9daa8488e..89022491cb 100644 --- a/contrib/earthdistance/expected/earthdistance.out +++ b/contrib/earthdistance/expected/earthdistance.out @@ -1049,10 +1049,10 @@ HINT: Use DROP ... CASCADE to drop the dependent objects too. drop extension cube cascade; NOTICE: drop cascades to table foo column f1 \d foo - Table "public.foo" - Column | Type | Modifiers ---------+---------+----------- - f2 | integer | + Table "public.foo" + Column | Type | Collation | Nullable | Default +--------+---------+-----------+----------+--------- + f2 | integer | | | -- list what's installed \dT public.* diff --git a/contrib/postgres_fdw/expected/postgres_fdw.out b/contrib/postgres_fdw/expected/postgres_fdw.out index 7339b58dee..785f520c4b 100644 --- a/contrib/postgres_fdw/expected/postgres_fdw.out +++ b/contrib/postgres_fdw/expected/postgres_fdw.out @@ -6707,43 +6707,43 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest1; (5 rows) \d import_dest1.* - Foreign table "import_dest1.t1" - Column | Type | Modifiers | FDW Options ---------+-------------------+-----------+-------------------- - c1 | integer | | (column_name 'c1') - c2 | character varying | not null | (column_name 'c2') + Foreign table "import_dest1.t1" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | | (column_name 'c1') + c2 | character varying | | not null | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't1') - Foreign table "import_dest1.t2" - Column | Type | Modifiers | FDW Options ---------+-------------------+---------------+-------------------- - c1 | integer | | (column_name 'c1') - c2 | character varying | | (column_name 'c2') - c3 | text | collate POSIX | (column_name 'c3') + Foreign table "import_dest1.t2" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | | (column_name 'c1') + c2 | character varying | | | | (column_name 'c2') + c3 | text | POSIX | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 't2') - Foreign table "import_dest1.t3" - Column | Type | Modifiers | FDW Options ---------+--------------------------+-----------+-------------------- - c1 | timestamp with time zone | | (column_name 'c1') - c2 | typ1 | | (column_name 'c2') + Foreign table "import_dest1.t3" + Column | Type | Collation | Nullable | Default | FDW Options +--------+--------------------------+-----------+----------+---------+-------------------- + c1 | timestamp with time zone | | | | (column_name 'c1') + c2 | typ1 | | | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't3') - Foreign table "import_dest1.x 4" - Column | Type | Modifiers | FDW Options ---------+-----------------------+-----------+--------------------- - c1 | double precision | | (column_name 'c1') - C 2 | text | | (column_name 'C 2') - c3 | character varying(42) | | (column_name 'c3') + Foreign table "import_dest1.x 4" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-----------------------+-----------+----------+---------+--------------------- + c1 | double precision | | | | (column_name 'c1') + C 2 | text | | | | (column_name 'C 2') + c3 | character varying(42) | | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 4') - Foreign table "import_dest1.x 5" - Column | Type | Modifiers | FDW Options ---------+------+-----------+------------- + Foreign table "import_dest1.x 5" + Column | Type | Collation | Nullable | Default | FDW Options +--------+------+-----------+----------+---------+------------- Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 5') @@ -6763,43 +6763,43 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest2 (5 rows) \d import_dest2.* - Foreign table "import_dest2.t1" - Column | Type | Modifiers | FDW Options ---------+-------------------+-----------+-------------------- - c1 | integer | | (column_name 'c1') - c2 | character varying | not null | (column_name 'c2') + Foreign table "import_dest2.t1" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | | (column_name 'c1') + c2 | character varying | | not null | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't1') - Foreign table "import_dest2.t2" - Column | Type | Modifiers | FDW Options ---------+-------------------+---------------+-------------------- - c1 | integer | default 42 | (column_name 'c1') - c2 | character varying | | (column_name 'c2') - c3 | text | collate POSIX | (column_name 'c3') + Foreign table "import_dest2.t2" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | 42 | (column_name 'c1') + c2 | character varying | | | | (column_name 'c2') + c3 | text | POSIX | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 't2') - Foreign table "import_dest2.t3" - Column | Type | Modifiers | FDW Options ---------+--------------------------+---------------+-------------------- - c1 | timestamp with time zone | default now() | (column_name 'c1') - c2 | typ1 | | (column_name 'c2') + Foreign table "import_dest2.t3" + Column | Type | Collation | Nullable | Default | FDW Options +--------+--------------------------+-----------+----------+---------+-------------------- + c1 | timestamp with time zone | | | now() | (column_name 'c1') + c2 | typ1 | | | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't3') - Foreign table "import_dest2.x 4" - Column | Type | Modifiers | FDW Options ---------+-----------------------+-----------+--------------------- - c1 | double precision | | (column_name 'c1') - C 2 | text | | (column_name 'C 2') - c3 | character varying(42) | | (column_name 'c3') + Foreign table "import_dest2.x 4" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-----------------------+-----------+----------+---------+--------------------- + c1 | double precision | | | | (column_name 'c1') + C 2 | text | | | | (column_name 'C 2') + c3 | character varying(42) | | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 4') - Foreign table "import_dest2.x 5" - Column | Type | Modifiers | FDW Options ---------+------+-----------+------------- + Foreign table "import_dest2.x 5" + Column | Type | Collation | Nullable | Default | FDW Options +--------+------+-----------+----------+---------+------------- Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 5') @@ -6818,43 +6818,43 @@ IMPORT FOREIGN SCHEMA import_source FROM SERVER loopback INTO import_dest3 (5 rows) \d import_dest3.* - Foreign table "import_dest3.t1" - Column | Type | Modifiers | FDW Options ---------+-------------------+-----------+-------------------- - c1 | integer | | (column_name 'c1') - c2 | character varying | | (column_name 'c2') + Foreign table "import_dest3.t1" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | | (column_name 'c1') + c2 | character varying | | | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't1') - Foreign table "import_dest3.t2" - Column | Type | Modifiers | FDW Options ---------+-------------------+-----------+-------------------- - c1 | integer | | (column_name 'c1') - c2 | character varying | | (column_name 'c2') - c3 | text | | (column_name 'c3') + Foreign table "import_dest3.t2" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-------------------+-----------+----------+---------+-------------------- + c1 | integer | | | | (column_name 'c1') + c2 | character varying | | | | (column_name 'c2') + c3 | text | | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 't2') - Foreign table "import_dest3.t3" - Column | Type | Modifiers | FDW Options ---------+--------------------------+-----------+-------------------- - c1 | timestamp with time zone | | (column_name 'c1') - c2 | typ1 | | (column_name 'c2') + Foreign table "import_dest3.t3" + Column | Type | Collation | Nullable | Default | FDW Options +--------+--------------------------+-----------+----------+---------+-------------------- + c1 | timestamp with time zone | | | | (column_name 'c1') + c2 | typ1 | | | | (column_name 'c2') Server: loopback FDW Options: (schema_name 'import_source', table_name 't3') - Foreign table "import_dest3.x 4" - Column | Type | Modifiers | FDW Options ---------+-----------------------+-----------+--------------------- - c1 | double precision | | (column_name 'c1') - C 2 | text | | (column_name 'C 2') - c3 | character varying(42) | | (column_name 'c3') + Foreign table "import_dest3.x 4" + Column | Type | Collation | Nullable | Default | FDW Options +--------+-----------------------+-----------+----------+---------+--------------------- + c1 | double precision | | | | (column_name 'c1') + C 2 | text | | | | (column_name 'C 2') + c3 | character varying(42) | | | | (column_name 'c3') Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 4') - Foreign table "import_dest3.x 5" - Column | Type | Modifiers | FDW Options ---------+------+-----------+------------- + Foreign table "import_dest3.x 5" + Column | Type | Collation | Nullable | Default | FDW Options +--------+------+-----------+----------+---------+------------- Server: loopback FDW Options: (schema_name 'import_source', table_name 'x 5') diff --git a/contrib/test_decoding/expected/ddl.out b/contrib/test_decoding/expected/ddl.out index 7fbeafdb39..a9ba615b5b 100644 --- a/contrib/test_decoding/expected/ddl.out +++ b/contrib/test_decoding/expected/ddl.out @@ -416,12 +416,12 @@ CREATE TABLE replication_metadata ( WITH (user_catalog_table = true) ; \d+ replication_metadata - Table "public.replication_metadata" - Column | Type | Modifiers | Storage | Stats target | Description -----------+---------+-------------------------------------------------------------------+----------+--------------+------------- - id | integer | not null default nextval('replication_metadata_id_seq'::regclass) | plain | | - relation | name | not null | plain | | - options | text[] | | extended | | + Table "public.replication_metadata" + Column | Type | Collation | Nullable | Default | Storage | Stats target | Description +----------+---------+-----------+----------+--------------------------------------------------+----------+--------------+------------- + id | integer | | not null | nextval('replication_metadata_id_seq'::regclass) | plain | | + relation | name | | not null | | plain | | + options | text[] | | | | extended | | Indexes: "replication_metadata_pkey" PRIMARY KEY, btree (id) Options: user_catalog_table=true @@ -430,12 +430,12 @@ INSERT INTO replication_metadata(relation, options) VALUES ('foo', ARRAY['a', 'b']); ALTER TABLE replication_metadata RESET (user_catalog_table); \d+ replication_metadata - Table "public.replication_metadata" - Column | Type | Modifiers | Storage | Stats target | Description -----------+---------+-------------------------------------------------------------------+----------+--------------+------------- - id | integer | not null default nextval('replication_metadata_id_seq'::regclass) | plain | | - relation | name | not null | plain | | - options | text[] | | extended | | + Table "public.replication_metadata" + Column | Type | Collation | Nullable | Default | Storage | Stats target | Description +----------+---------+-----------+----------+--------------------------------------------------+----------+--------------+------------- + id | integer | | not null | nextval('replication_metadata_id_seq'::regclass) | plain | | + relation | name | | not null | | plain | | + options | text[] | | | | extended | | Indexes: "replication_metadata_pkey" PRIMARY KEY, btree (id) @@ -443,12 +443,12 @@ INSERT INTO replication_metadata(relation, options) VALUES ('bar', ARRAY['a', 'b']); ALTER TABLE replication_metadata SET (user_catalog_table = true); \d+ replication_metadata - Table "public.replication_metadata" - Column | Type | Modifiers | Storage | Stats target | Description -----------+---------+-------------------------------------------------------------------+----------+--------------+------------- - id | integer | not null default nextval('replication_metadata_id_seq'::regclass) | plain | | - relation | name | not null | plain | | - options | text[] | | extended | | + Table "public.replication_metadata" + Column | Type | Collation | Nullable | Default | Storage | Stats target | Description +----------+---------+-----------+----------+--------------------------------------------------+----------+--------------+------------- + id | integer | | not null | nextval('replication_metadata_id_seq'::regclass) | plain | | + relation | name | | not null | | plain | | + options | text[] | | | | extended | | Indexes: "replication_metadata_pkey" PRIMARY KEY, btree (id) Options: user_catalog_table=true @@ -461,13 +461,13 @@ ALTER TABLE replication_metadata ALTER COLUMN rewritemeornot TYPE text; ERROR: cannot rewrite table "replication_metadata" used as a catalog table ALTER TABLE replication_metadata SET (user_catalog_table = false); \d+ replication_metadata - Table "public.replication_metadata" - Column | Type | Modifiers | Storage | Stats target | Description -----------------+---------+-------------------------------------------------------------------+----------+--------------+------------- - id | integer | not null default nextval('replication_metadata_id_seq'::regclass) | plain | | - relation | name | not null | plain | | - options | text[] | | extended | | - rewritemeornot | integer | | plain | | + Table "public.replication_metadata" + Column | Type | Collation | Nullable | Default | Storage | Stats target | Description +----------------+---------+-----------+----------+--------------------------------------------------+----------+--------------+------------- + id | integer | | not null | nextval('replication_metadata_id_seq'::regclass) | plain | | + relation | name | | not null | | plain | | + options | text[] | | | | extended | | + rewritemeornot | integer | | | | plain | | Indexes: "replication_metadata_pkey" PRIMARY KEY, btree (id) Options: user_catalog_table=false |