Re: Calculation of db size

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: Horst Düster <horst(dot)duester(at)sourcepole(dot)ch>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Calculation of db size
Date: 2019-01-21 14:23:00
Message-ID: CAGDYbUMgT1PJ0dGsNGqvUnyhEgMH6itaTX6KGeepxoxwbcyOog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Yes, pg_database_size() includes all disk space used by the database i.e.
catalog tables or user data.

Thanks & Regards,
*Shreeyansh DBA Team*
www.shreeyansh.com

On Mon, Jan 21, 2019 at 7:39 PM Horst Düster <horst(dot)duester(at)sourcepole(dot)ch>
wrote:

> Then I have a subsequent question.
>
> Does the query
>
> SELECT g_database_size('dbname');
>
> take into account the storage space of the table pg_shdepend or not?
>
> Regards
> Horst
>
> --
> Dr. Horst Düster
> Managing Director
> Sourcepole AG - Linux & Open Source Solutions
> Weberstrasse 5, 8004 Zürich, Switzerland
> Tel: +41 (0)44 440 77 11
> Direkt: +41 (0)44 515 67 70
> horst(dot)duester(at)sourcepole(dot)ch http://www.sourcepole.ch
>
> qgiscloud.com - Karten einfach vom Desktop ins Netz
>
>
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gary Stainburn 2019-01-21 15:03:23 Re: upgrade from FC9 / PG8.3 to C7 / PG 9.6 - utf8
Previous Message Andrew Gierth 2019-01-21 14:22:27 Re: Calculation of db size