Database size on disk

Поиск
Список
Период
Сортировка
От Quiroga, Damian
Тема Database size on disk
Дата
Msg-id 5F6634B7560CA34EA814093D8CDACAC736FAAFBD@fmsmsx107.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Database size on disk
Список pgsql-general

Hi,

 

I’m looking for some advice on how to determine the DB size on disk to trigger some cleanup tasks (deleting old data) if some threshold is reached.

 

Let’s say that for simplicity I don’t want to ask for the size on disk to the OS, but rather to PostgreSQL itself. And I only have a single database other than the defaults (‘template’, etc).

 

In that scenario is using pg_database_size() reasonable? Does that function return the actual size on disk or is it a calculation? Is there a better alternative?

 

Thanks,

 

Damian

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

Предыдущее
От: "Ramalingam, Sankarakumar"
Дата:
Сообщение: Re: postgres standby won't start
Следующее
От: dinesh kumar
Дата:
Сообщение: Re: Database size on disk