pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedReg: Query for DB growth size
5+ messages / 4 participants
[nested] [flat]
* Reg: Query for DB growth size
@ 2018-11-29 06:41 R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:15 ` Re: Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 09:31 ` Re: Reg: Query for DB growth size Condor <condor@stz-bg.com>
0 siblings, 2 replies; 5+ messages in thread
From: R.R. PRAVEEN RAJA @ 2018-11-29 06:41 UTC (permalink / raw)
To: pgsql-general
Hi All,
Can i get the query or steps for how to check the Database growth in postgres. Thanks in advance.
Regards,
Praveen
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Reg: Query for DB growth size
2018-11-29 06:41 Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
@ 2018-11-29 08:15 ` R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:29 ` Re: Reg: Query for DB growth size Achilleas Mantzios <achill@matrix.gatewaynet.com>
2018-11-29 09:06 ` Re: Reg: Query for DB growth size Michael Paquier <michael@paquier.xyz>
1 sibling, 2 replies; 5+ messages in thread
From: R.R. PRAVEEN RAJA @ 2018-11-29 08:15 UTC (permalink / raw)
To: Andreas Joseph Krogh <andreas@visena.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
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
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<mailto: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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Reg: Query for DB growth size
2018-11-29 06:41 Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:15 ` Re: Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
@ 2018-11-29 08:29 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
1 sibling, 0 replies; 5+ messages in thread
From: Achilleas Mantzios @ 2018-11-29 08:29 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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 <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 <mailto: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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Reg: Query for DB growth size
2018-11-29 06:41 Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:15 ` Re: Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
@ 2018-11-29 09:06 ` Michael Paquier <michael@paquier.xyz>
1 sibling, 0 replies; 5+ messages in thread
From: Michael Paquier @ 2018-11-29 09:06 UTC (permalink / raw)
To: R.R. PRAVEEN RAJA <rrpraveenraja@live.com>; +Cc: Andreas Joseph Krogh <andreas@visena.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Reg: Query for DB growth size
2018-11-29 06:41 Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
@ 2018-11-29 09:31 ` Condor <condor@stz-bg.com>
1 sibling, 0 replies; 5+ messages in thread
From: Condor @ 2018-11-29 09:31 UTC (permalink / raw)
To: R.R. PRAVEEN RAJA <rrpraveenraja@live.com>; +Cc: pgsql-general
On 29-11-2018 08:41, R.R. PRAVEEN RAJA wrote:
> Hi All,
>
> Can i get the query or steps for how to check the Database growth in
> postgres. Thanks in advance.
>
> Regards,
> Praveen
No official thing that can do the job.
You need to DIY, start collecting data (database size, connections
count, index sizes or so) every day, hour, min or so and then make
software to analyze it after a while.
Regards,
HS
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-11-29 09:31 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-29 06:41 Reg: Query for DB growth size R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:15 ` R.R. PRAVEEN RAJA <rrpraveenraja@live.com>
2018-11-29 08:29 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
2018-11-29 09:06 ` Michael Paquier <michael@paquier.xyz>
2018-11-29 09:31 ` Condor <condor@stz-bg.com>
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