Re: Number of rows in a table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Number of rows in a table
Дата
Msg-id 10653.1061844798@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Number of rows in a table  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-novice
Ron Johnson <ron.l.johnson@cox.net> writes:
> Well yes, but in most other databases, there is a system table that
> stores the approximate number of records in each table, and querying
> that system table is a *lot* faster than sequentially reading a 100M
> row table.

If an approximate number is good enough, see pg_class.reltuples.

            regards, tom lane

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

Предыдущее
От: Juan Francisco Diaz
Дата:
Сообщение: Using RECORD returning functions with JDBC
Следующее
От: "Juan Francisco Diaz"
Дата:
Сообщение: INSERT INTO foo (col1,col2,...,coln) not working