mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
psql: Split up "Modifiers" column in \d and \dD
Make separate columns "Collation", "Nullable", "Default". Reviewed-by: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
This commit is contained in:
@@ -4081,12 +4081,11 @@ CREATE TABLE
|
||||
Now look at the table definition again:
|
||||
<programlisting>
|
||||
testdb=> <userinput>\d my_table</userinput>
|
||||
Table "my_table"
|
||||
Attribute | Type | Modifier
|
||||
-----------+---------+--------------------
|
||||
first | integer | not null default 0
|
||||
second | text |
|
||||
|
||||
Table "public.my_table"
|
||||
Column | Type | Collation | Nullable | Default
|
||||
--------+---------+-----------+----------+---------
|
||||
first | integer | | not null | 0
|
||||
second | text | | |
|
||||
</programlisting>
|
||||
Now we change the prompt to something more interesting:
|
||||
<programlisting>
|
||||
|
||||
Reference in New Issue
Block a user