pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
Cc: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Reg: Query for DB growth size
Date: Thu, 29 Nov 2018 18:06:35 +0900
Message-ID: <20181129090635.GG9004@paquier.xyz> (raw)
In-Reply-To: <DM5PR11MB1260045ACB51435E730699FCC0D20@DM5PR11MB1260.namprd11.prod.outlook.com>
References: <DM5PR11MB1260ADB067169DE3387F0E77C0D20@DM5PR11MB1260.namprd11.prod.outlook.com>
	<VisenaEmail.9.ce7b1f2376bc62c7.1675e68e7a1@tc7-visena>
	<DM5PR11MB1260045ACB51435E730699FCC0D20@DM5PR11MB1260.namprd11.prod.outlook.com>

On Thu, Nov 29, 2018 at 08:15:10AM +0000, R.R. PRAVEEN RAJA wrote:
> I hope you did not understand my question. I am not asking query for
> current database size. I am asking for database growth, i mean
> predicting the increase in database size over a period like a month
> just like its available in oracle.

Why not running a cron job which stores periodically the result of
pg_database_size with a timestamp (simply now())?  Then you have as much
data as you want for growth comparison.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)  latest in thread

Message-ID: <20181129090635.GG9004@paquier.xyz>
Permalink:  ../20181129090635.GG9004@paquier.xyz/
Also on:    postgresql.org/message-id/20181129090635.GG9004@paquier.xyz

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, rrpraveenraja@live.com, andreas@visena.com
  Subject: Re: Reg: Query for DB growth size
  In-Reply-To: <20181129090635.GG9004@paquier.xyz>
  References: <DM5PR11MB1260ADB067169DE3387F0E77C0D20@DM5PR11MB1260.namprd11.prod.outlook.com> <VisenaEmail.9.ce7b1f2376bc62c7.1675e68e7a1@tc7-visena> <DM5PR11MB1260045ACB51435E730699FCC0D20@DM5PR11MB1260.namprd11.prod.outlook.com> <20181129090635.GG9004@paquier.xyz>

* 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