From: Laurenz Albe <laurenz.albe@cybertec.at>
To: pavan95 <pavan.postgresdba@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Calculation of Database Size in postgres
Date: Wed, 14 Feb 2018 12:16:30 +0100
Message-ID: <1518606990.2402.2.camel@cybertec.at> (raw)
In-Reply-To: <1518603837502-0.post@n3.nabble.com>
References: <1518603470895-0.post@n3.nabble.com>
<1518603681.2402.0.camel@cybertec.at>
<1518603837502-0.post@n3.nabble.com>
pavan95 wrote:
> Do you know how does it calculate internally using what functions or what
> system catalogs or whatever?
The functions are in backend/utils/adt/dbsize.c, note in particular
db_dir_size which walks through a directory and adds up the sizes of
all files therein.
Yours,
Laurenz Albe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, pavan.postgresdba@gmail.com
Subject: Re: Calculation of Database Size in postgres
In-Reply-To: <1518606990.2402.2.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox