Re: [SQL] Row counts/data changes. Any catalog table that has this info?

Поиск
Список
Период
Сортировка
От daq
Тема Re: [SQL] Row counts/data changes. Any catalog table that has this info?
Дата
Msg-id 121164827738.20040220084449@ugyvitelszolgaltato.hu
обсуждение исходный текст
Список pgsql-novice
DB> Folks,

DB> Is there a catalog table or location where I can go to find data counts for
DB> tables?

DB> It would be nice if I could do a query which returned something like:

DB> table_name    #Rows
DB> cust          1000
DB> order         5000
DB> order_detail  9500

DB> without having to have the overhead of querying each table in turn.

DB> If there is such a source then is it accurate as of now or last vacuum or
DB> ???

The pg_class table has a reltuples field but only the vacuum process updates it.

DAQ


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql hangs after "drop table ..."
Следующее
От: Bruno LEVEQUE
Дата:
Сообщение: Re: commenting sql code