Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSHhW-0002vO-Dt for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 08:29:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSHhV-0002fF-7B for pgsql-general@arkaria.postgresql.org; Thu, 29 Nov 2018 08:29:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSHhU-0002f7-VK for pgsql-general@lists.postgresql.org; Thu, 29 Nov 2018 08:29:33 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSHhR-00074E-K9 for pgsql-general@lists.postgresql.org; Thu, 29 Nov 2018 08:29:32 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id wAT8TLX9029962 for ; Thu, 29 Nov 2018 10:29:26 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id wAT8TLd6029154 for ; Thu, 29 Nov 2018 10:29:21 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Reg: Query for DB growth size To: pgsql-general@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: <7a637b5b-5b0e-9eab-d2d9-b97b89d3558b@matrix.gatewaynet.com> Date: Thu, 29 Nov 2018 10:29:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------F744EC43B26855D74AC9D1A9" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-27.4 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SHORT_BODY,DYN_HAM_SIGNAT1,DYN_SPAM_MED6, HTML_MESSAGE,TW_PG autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------F744EC43B26855D74AC9D1A9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello, On 29/11/18 10:15 π.μ., R.R. PRAVEEN RAJA wrote: > Hi Andreas, > > 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. For oracle you can see the below link. > > http://www.dba-oracle.com/t_database_growth_reports.htm A huge list of monitoring solutions for Unix/Linux/PostgreSQL. The hot new trend is Prometheus, also you could checkout nagios, icinga, munin, zabbix lots and lots of options there. You might also try a commercial offering (like e.g. Several Nines), they have some pretty graphs, alarms, alerts of all kinds. And last but not least, you could have your own monitoring table where you keep periodic snapshots of the live metrics. You may read here for an overview : https://severalnines.com/blog/key-things-monitor-postgresql-analyzing-your-workload > > >  Thanks in advance. > > Regards, > PraveenRaja > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > *From:* Andreas Joseph Krogh > *Sent:* Thursday, November 29, 2018 1:10 PM > *To:* pgsql-general@lists.postgresql.org > *Subject:* Sv: Reg: Query for DB growth size > På torsdag 29. november 2018 kl. 07:41:24, skrev R.R. PRAVEEN RAJA >: > > Hi All, > Can i get the query or steps for how to check the Database growth in postgres. Thanks in advance. > > select pg_size_pretty(pg_database_size(current_database())); > -- > *Andreas Joseph Krogh* -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------F744EC43B26855D74AC9D1A9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Hello,

On 29/11/18 10:15 π.μ., R.R. PRAVEEN RAJA wrote:
Hi Andreas,

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. For oracle you can see the below link.


A huge list of monitoring solutions for Unix/Linux/PostgreSQL. The hot new trend is Prometheus, also you could checkout nagios, icinga, munin, zabbix lots and lots of options there.
You might also try a commercial offering (like e.g. Several Nines), they have some pretty graphs, alarms, alerts of all kinds.
And last but not least, you could have your own monitoring table where you keep periodic snapshots of the live metrics.
You may read here for an overview : https://severalnines.com/blog/key-things-monitor-postgresql-analyzing-your-workload



 Thanks in advance.

Regards,
PraveenRaja


From: Andreas Joseph Krogh <andreas@visena.com>
Sent: Thursday, November 29, 2018 1:10 PM
To: pgsql-general@lists.postgresql.org
Subject: Sv: Reg: Query for DB growth size
 
På torsdag 29. november 2018 kl. 07:41:24, skrev R.R. PRAVEEN RAJA <rrpraveenraja@live.com>:
Hi All,
 
Can i get the query or steps for how to check the Database growth in postgres. Thanks in advance.
 
select pg_size_pretty(pg_database_size(current_database()));
 
--
Andreas Joseph Krogh


-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------F744EC43B26855D74AC9D1A9--