proposal - psql: possibility to specify sort for describe commands, when size is printed

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: proposal - psql: possibility to specify sort for describe commands, when size is printed
Date: 2017-02-23 11:17:31
Message-ID: CAFj8pRBHxkuBxtwxnh0=ha22+rxA3Hg8+opyZDAWC12pvefDNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

Currently is not possible to control sort columns for \d* commands. Usually
schema and table name is used. Really often task is collect the most big
objects in database. "\dt+, \di+" shows necessary information, but not in
practical order.

Instead introduction some additional flags to backslash commands, I propose
a special psql variable that can be used for specification of order used
when some plus command is used.

some like

set EXTENDED_DESCRIBE_SORT size_desc
\dt+
\l+
\di+

Possible variants: schema_table, table_schema, size_desc, size_asc

Comments, notes?

Regards

Pavel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2017-02-23 11:45:23 Re: GUC for cleanup indexes threshold.
Previous Message Pantelis Theodosiou 2017-02-23 10:38:20 Re: Make subquery alias optional in FROM clause