diff options
Diffstat (limited to 'src/bin/psql/describe.c')
-rw-r--r-- | src/bin/psql/describe.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 21bbdf823a7..d1447fe723e 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -2345,16 +2345,19 @@ describeOneTableDetails(const char *schemaname, printTableAddFooter(&cont, buf.data); } - if (verbose && (tableinfo.relkind == 'r' || tableinfo.relkind == 'm') && + if ((tableinfo.relkind == 'r' || tableinfo.relkind == 'm') && + /* + * No need to display default values; we already display a + * REPLICA IDENTITY marker on indexes. + */ + tableinfo.relreplident != 'd' && tableinfo.relreplident != 'i' && strcmp(schemaname, "pg_catalog") != 0) { const char *s = _("Replica Identity"); printfPQExpBuffer(&buf, "%s: %s", s, - tableinfo.relreplident == 'd' ? "DEFAULT" : tableinfo.relreplident == 'f' ? "FULL" : - tableinfo.relreplident == 'i' ? "USING INDEX" : tableinfo.relreplident == 'n' ? "NOTHING" : "???"); |