Re: [SQL] SQL query to check size of database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] SQL query to check size of database
Дата
Msg-id 25329.931959314@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SQL query to check size of database  (webmaster <webmaster@tony.cz>)
Список pgsql-sql
webmaster <webmaster@tony.cz> writes:
> Is there any way how to retrieve the information about file sizes with
> some SQL query? I know I can do something like SELECT * FROM
> pg_classes but I'm not sure if i can use the information from fields
> 'reltuples' and 'relpages' - I was experimenting with those values but
> without succes - trying to find the constant value of the page size -
> it seems not work.

I think relpages is accurate after a VACUUM, but it's not maintained
on-the-fly...
        regards, tom lane


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

Предыдущее
От: webmaster
Дата:
Сообщение: SQL query to check size of database
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] WHERE clause?