Re: Unexpectedly high disk space usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unexpectedly high disk space usage
Дата
Msg-id 783.1352328368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unexpectedly high disk space usage  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
Jeff Janes <jeff.janes@gmail.com> writes:
>> WHERE nspname NOT IN ('pg_catalog', 'information_schema')
>> AND C.relkind <> 'i'
>> AND nspname !~ '^pg_toast'

> I question the wisdom of that where clause (from the wiki)

> If the pg_catalog relations are big, then they are big and why
> shouldn't they get reported as such?

Agreed, please change it.

(The index and toast exclusions are reasonable, since those will be
accounted for in pg_total_relation_size of the parent.  Personally I'd
code the toast exclusion using relkind not a namespace check though.)

            regards, tom lane


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Unexpectedly high disk space usage
Следующее
От: David Boreham
Дата:
Сообщение: Re: Plug-pull testing worked, diskchecker.pl failed