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

From: Tatsuro Yamada <yamatattsu(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 06:32:51
Message-ID: CAOKkKFva8=XuTF-XKLuR-1vOE2UXa2co3QnNKMtjmhZsDMc=DA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom and Jim,

>The next patch will include the following changes:
>
>- Rename the command from \dcs to \dCN (proposed by Tom. Thanks!)
>- Join pg_class in the query only when the "+" option is used
> (identified through Jim's additional testing. Thanks!)

I have prepared a new patch and am sending it here.
Please find the attached file.

>Note: The following two points, which were discussed in the previous
email,
>will be addressed once the discussion is settled:
>
>- Changing the column order displayed by the \dCN command
>- Adding domain constraints to the list of displayed items

I have shared my thoughts on the two points raised by Tom in the email
below, and I would appreciate your comments.

https://www.postgresql.org/message-id/CAOKkKFuYfdvpQ7eSYWxB1YrzwVafWm%2B%2BctXBPe_Rb1YqeOKjjA%40mail.gmail.com

Regards,
Tatsuro Yamada

Attachment Content-Type Size
v3-0001-Add-list-constraints-meta-command-dCN-on-psql.patch application/octet-stream 34.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-01-15 07:00:38 Fix gistkillitems & add regression test to microvacuum
Previous Message Chao Li 2026-01-15 06:22:09 Re: Buffer locking is special (hints, checksums, AIO writes)