Re: table row count

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: table row count
Дата
Msg-id 23885.1044771105@sss.pgh.pa.us
обсуждение исходный текст
Ответ на table row count  ("Martin Hurst" <martinh@ix.netcom.com>)
Список pgsql-general
"Martin Hurst" <martinh@ix.netcom.com> writes:
> Is there a way to get the row count of a user table without doing the?
> select count(*) from <table>

If this were an easy problem, count() would do it for you ;-)

If you're willing to settle for an approximate answer,
pg_class.reltuples might do.  It's the row count as of the last VACUUM.

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: table row count
Следующее
От: Marcelo Pereira
Дата:
Сообщение: PostgreSQL x Oracle