Re: pg_database_size

From: Venkata Balaji N <nag1010(at)gmail(dot)com>
To: sangeetha <tune2sangee(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: pg_database_size
Date: 2016-06-04 08:10:18
Message-ID: CAEyp7J-sHQfJx-vm_0CGDJcLpRUGiOBA59+a3nwf2spaYA+TjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Sat, Jun 4, 2016 at 5:35 PM, sangeetha <tune2sangee(at)gmail(dot)com> wrote:

> SELECT pg_database_size('DB1') takes 60ms for 7948 kB size DB. Is there
> any
> way to reduce the time taken or any other ways to find data base size?

What is the version of PostgreSQL you are using ?

You can execute the command "\l+" which will list all the databases and
their sizes.

Or you can execute "\l+ <database-name>".

Regards,
Venkata B N

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2016-06-04 13:39:48 Re: index fragmentation on insert-only table with non-unique column
Previous Message sangeetha 2016-06-04 07:35:55 pg_database_size