[PATCH] psql: add size-based sorting options (O/o) for tables and indexes
M.Atıf Ceylan <mehmet@atifceylan.com>
From: M.Atıf Ceylan <mehmet@atifceylan.com>
To: pgsql-hackers@postgresql.org
Date: 2025-11-26T07:48:52Z
Lists: pgsql-hackers
Attachments
- v1-0001-psql-add-size-based-sorting-for-tables-and-indexes.patch (application/octet-stream) patch v1-0001
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