Re: [PATCH] psql: add \dcs to list all constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tatsuro Yamada <yamatattsu(at)gmail(dot)com>
Cc: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Subject: Re: [PATCH] psql: add \dcs to list all constraints
Date: 2026-01-15 03:59:10
Message-ID: 515851.1768449550@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> * You might do well to use upper-case letters for add-on
> filters (that is, "N" not "n" for not-null, etc). This isn't
> really a convention we've used elsewhere, except for the case
> of "S" for "system" in some commands. But I think it's too
> hard to tell the base command name from the filter add-ons
> without some typographic help like that.

Or we could invert that: make the base command name "\dCN"
and then the add-on filters stay lower case. Since we
already have, eg, "\dC", this might be less of a departure
from existing practice.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2026-01-15 04:31:07 Re: support ALTER COLUMN SET EXPRESSION over virtual generated column with check constraint
Previous Message Sami Imseih 2026-01-15 03:54:17 Re: Flush some statistics within running transactions