Re: vacuum verbose relations reporting

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: vacuum verbose relations reporting
Дата
Msg-id 20080827013612.GT4920@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: vacuum verbose relations reporting  (Jeff Frost <jeff@frostconsultingllc.com>)
Ответы Re: vacuum verbose relations reporting  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-admin
Jeff Frost wrote:

> Tom, is there an easy (or hard) way to count relations from all DBs by
> using the system catalogs?

Just do a count(*) from pg_class where relkind in ('r', 't', 'i'), and
sum across all databases (you need to connect to each one).

(Actually you only need to count indexes that are btrees, if you need
such a distinction.  Other indexes do not use the FSM as far as I know).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: vacuum verbose relations reporting
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: vacuum verbose relations reporting