Re: pg_database_size

Поиск
Список
Период
Сортировка
От Venkata Balaji N
Тема Re: pg_database_size
Дата
Msg-id CAEyp7J-sHQfJx-vm_0CGDJcLpRUGiOBA59+a3nwf2spaYA+TjQ@mail.gmail.com
обсуждение исходный текст
Ответ на pg_database_size  (sangeetha <tune2sangee@gmail.com>)
Ответы Re: pg_database_size  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-performance

On Sat, Jun 4, 2016 at 5:35 PM, sangeetha <tune2sangee@gmail.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

В списке pgsql-performance по дате отправления:

Предыдущее
От: sangeetha
Дата:
Сообщение: pg_database_size
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: index fragmentation on insert-only table with non-unique column