Re: [PATCH] psql: \dn+ to show size of each schema (and \dA+ for AMs)

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Ian Lawrence Barwick <barwick(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Gilles Darold <gilles(at)darold(dot)net>, Julien Rouhaud <rjuju123(at)gmail(dot)com>
Subject: Re: [PATCH] psql: \dn+ to show size of each schema (and \dA+ for AMs)
Date: 2022-12-15 16:13:23
Message-ID: 20221215161323.GI1153@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rebased on c727f511b.

This patch record was "closed for lack of interest", but I think what's
actually needed is committer review of which approach to take.

- add backend functions but do not modify psql ?
- add to psql slash-plus commnds ?
- introduce psql double-plus commands for new options ?
- change pre-existing psql plus commands to only show size with
double-plus ?
- go back to the original, two-line client-side sum() ?

Until then, the patchset is organized with those questions in mind.

--
Justin

Attachment Content-Type Size
0001-Add-pg_am_size-pg_namespace_size.patch text/x-diff 5.6 KB
0002-psql-add-convenience-commands-dA-and-dn.patch text/x-diff 8.6 KB
0003-f-convert-the-other-verbose-to-int-too.patch text/x-diff 40.7 KB
0004-Move-the-double-plus-Size-columns-to-the-right.patch text/x-diff 10.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2022-12-15 16:18:04 Re: plpgsq_plugin's stmt_end() is not called when an error is caught
Previous Message Tom Lane 2022-12-15 15:49:39 Re: plpgsq_plugin's stmt_end() is not called when an error is caught