mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
psql: conditionally display oids and replication identity
In psql \d+, display oids only when they exist, and display replication identity only when it is non-default. Also document the defaults for replication identity for system and non-system tables. Update regression output.
This commit is contained in:
@ -608,12 +608,14 @@ ALTER TABLE [ IF EXISTS ] <replaceable class="PARAMETER">name</replaceable>
|
||||
<para>
|
||||
This form changes the information which is written to the write-ahead log
|
||||
to identify rows which are updated or deleted. This option has no effect
|
||||
except when logical replication is in use. <literal>DEFAULT</> records the
|
||||
except when logical replication is in use. <literal>DEFAULT</>
|
||||
(the default for non-system tables) records the
|
||||
old values of the columns of the primary key, if any. <literal>USING INDEX</>
|
||||
records the old values of the columns covered by the named index, which
|
||||
must be unique, not partial, not deferrable, and include only columns marked
|
||||
<literal>NOT NULL</>. <literal>FULL</> records the old values of all columns
|
||||
in the row. <literal>NOTHING</> records no information about the old row.
|
||||
(This is the default for system tables.)
|
||||
In all cases, no old values are logged unless at least one of the columns
|
||||
that would be logged differs between the old and new versions of the row.
|
||||
</para>
|
||||
|
@ -951,7 +951,9 @@ testdb=>
|
||||
The command form <literal>\d+</literal> is identical, except that
|
||||
more information is displayed: any comments associated with the
|
||||
columns of the table are shown, as is the presence of OIDs in the
|
||||
table, the view definition if the relation is a view.
|
||||
table, the view definition if the relation is a view, a non-default
|
||||
<link linkend="SQL-CREATETABLE-REPLICA-IDENTITY">replica
|
||||
identity</link> setting.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user