[PATCH] psql: add size-based sorting options (O/o) for tables and indexes

From: M(dot)Atıf Ceylan <mehmet(at)atifceylan(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] psql: add size-based sorting options (O/o) for tables and indexes
Date: 2025-11-26 07:48:52
Message-ID: CA+M9mDThhJmuzN8umoPx2JhhKWkXpKO_1E3+4MCSdqE9SnmCjw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,
This patch adds two new meta-command modifiers for \dt(+) and \di(+):

- O : sort by total relation size descending
- o : sort by total relation size ascending

This makes it easier to identify the largest tables and indexes
without writing custom SQL queries.

Help message (\?) is updated to reflect the new options.

regards,
--
M.Atıf Ceylan

Attachment Content-Type Size
v1-0001-psql-add-size-based-sorting-for-tables-and-indexes.patch application/octet-stream 2.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2025-11-26 08:00:06 Re: [buildfarm related] Machines gcc experimental failed test_lfind
Previous Message Amit Langote 2025-11-26 07:32:20 Re: transformJsonFuncExpr pathspec cache lookup failed