Re: [patch] Add schema total size to psql \dn+

2019-02-25 Thread Gilles Darold
Le 22/02/2019 à 17:06, Robert Haas a écrit : > On Wed, Feb 20, 2019 at 5:26 PM Gilles Darold > wrote: >> The attached simple patch adds this feature. Is there any cons adding >> this information? > Well, it'll take time to compute, maybe a lot of time if the database > is big and the server is

Re: [patch] Add schema total size to psql \dn+

2019-02-25 Thread Gilles Darold
Le 22/02/2019 à 19:21, Tom Lane a écrit : > Robert Haas writes: >> On Wed, Feb 20, 2019 at 5:26 PM Gilles Darold >> wrote: >>> The attached simple patch adds this feature. Is there any cons adding >>> this information? >> Well, it'll take time to compute, maybe a lot of time if the database >>

Re: [patch] Add schema total size to psql \dn+

2019-02-23 Thread Julien Rouhaud
On Fri, Feb 22, 2019 at 7:22 PM Tom Lane wrote: > > Is there any permissions issue involved here? I'd be a bit worried > about whether \dn+ could fail, or deliver misleading answers, when > run by a user without permissions on (some) tables. Also, even if > we allow people to get size info on

Re: [patch] Add schema total size to psql \dn+

2019-02-22 Thread Tom Lane
Robert Haas writes: > On Wed, Feb 20, 2019 at 5:26 PM Gilles Darold > wrote: >> The attached simple patch adds this feature. Is there any cons adding >> this information? > Well, it'll take time to compute, maybe a lot of time if the database > is big and the server is busy. Not sure how

Re: [patch] Add schema total size to psql \dn+

2019-02-22 Thread Robert Haas
On Wed, Feb 20, 2019 at 5:26 PM Gilles Darold wrote: > The attached simple patch adds this feature. Is there any cons adding > this information? Well, it'll take time to compute, maybe a lot of time if the database is big and the server is busy. Not sure how serious that problem can get. --

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Gilles Darold
Le 21/02/2019 à 21:57, Jerry Sievers a écrit : > Gilles Darold writes: > >> Le 21/02/2019 à 18:28, Julien Rouhaud a écrit : >> >>> On Thu, Feb 21, 2019 at 5:42 PM Gilles Darold >>> wrote: Le 21/02/2019 à 12:01, Julien Rouhaud a écrit : > On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Jerry Sievers
Gilles Darold writes: > Le 21/02/2019 à 18:28, Julien Rouhaud a écrit : > >> On Thu, Feb 21, 2019 at 5:42 PM Gilles Darold >> wrote: >>> Le 21/02/2019 à 12:01, Julien Rouhaud a écrit : On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold wrote: >> When we want to get total size of

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Gilles Darold
Le 21/02/2019 à 18:28, Julien Rouhaud a écrit : > On Thu, Feb 21, 2019 at 5:42 PM Gilles Darold > wrote: >> Le 21/02/2019 à 12:01, Julien Rouhaud a écrit : >>> On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold >>> wrote: > When we want to get total size of all relation in a schema we have to

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Julien Rouhaud
On Thu, Feb 21, 2019 at 5:42 PM Gilles Darold wrote: > > Le 21/02/2019 à 12:01, Julien Rouhaud a écrit : > > On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold > > wrote: > >>> When we want to get total size of all relation in a schema we have to > >>> execute one of our favorite DBA query. It is

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Gilles Darold
Le 21/02/2019 à 12:01, Julien Rouhaud a écrit : > On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold > wrote: >>> When we want to get total size of all relation in a schema we have to >>> execute one of our favorite DBA query. It is quite simple but what >>> about displaying schema size when using

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Julien Rouhaud
On Thu, Feb 21, 2019 at 11:49 AM Gilles Darold wrote: > > > When we want to get total size of all relation in a schema we have to > > execute one of our favorite DBA query. It is quite simple but what > > about displaying schema size when using \dn+ in psql ? > > [...] > > The attached simple

Re: [patch] Add schema total size to psql \dn+

2019-02-21 Thread Gilles Darold
Le 20/02/2019 à 23:26, Gilles Darold a écrit : > Hi all, > > > When we want to get total size of all relation in a schema we have to > execute one of our favorite DBA query. It  is quite simple but what > about displaying schema size when using \dn+ in psql ? > > > gilles=# \dn+ >  

[patch] Add schema total size to psql \dn+

2019-02-20 Thread Gilles Darold
Hi all, When we want to get total size of all relation in a schema we have to execute one of our favorite DBA query. It  is quite simple but what about displaying schema size when using \dn+ in psql ? gilles=# \dn+    List of schemas   Name  |  Owner   |  Access