Re: Bloat and Slow Vacuum Time on Toast

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bloat and Slow Vacuum Time on Toast
Дата
Msg-id 5036.1311110810@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bloat and Slow Vacuum Time on Toast  (Ken Caruso <ken@ipl31.net>)
Ответы Re: Bloat and Slow Vacuum Time on Toast  (Ken Caruso <ken@ipl31.net>)
Список pgsql-admin
Ken Caruso <ken@ipl31.net> writes:
> I am trying to trouble shoot a couple of issue related to vacuum and db
> size. I currently have a postgres DB that is around 390GB on disk (du -hs in
> $PG_DATA/base). If I look at the total relation size using the following
> query:

> SELECT SUM(pg_relation_size(pg_class.oid))
> FROM pg_class ;

> This says the total size is around 191GB. That query should sum all of the
> tables, toast and indexes AFAIK.

What PG version?

If it's a version with multiple table forks, you're only counting the
main forks, not FSM or VM.

Theoretically the latter two should be pretty small relative to the main
fork, but obviously you are missing something with this query ...

            regards, tom lane

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

Предыдущее
От: Ken Caruso
Дата:
Сообщение: Re: Bloat and Slow Vacuum Time on Toast
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Bloat and Slow Vacuum Time on Toast