How do you find the row count for all your tables in Postgres?

Поиск
Список
Период
Сортировка
От Nithya Soman
Тема How do you find the row count for all your tables in Postgres?
Дата
Msg-id CAJG8ayAdqZEQ9XVnrKr6UpfV71hrN-ZEEje4AD=E6genzCKC9A@mail.gmail.com
обсуждение исходный текст
Ответы Re: How do you find the row count for all your tables in Postgres?  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
Hi

How can we find the total row count for all db tables in psql version  7.4.3 ??

The query which worked fine in psql 9.2 version is :
SELECT schemaname,relname,n_live_tup FROM pg_stat_user_tables ORDER BY n_live_tup DESC.

But same query throws error as 'ERROR:  column "n_live_tup" does not exist' in psql 7.4.30. Could you please provide a valid query to get row count for all db tables in psql  7.4.3 ?


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

Предыдущее
От: Ilya Ivanov
Дата:
Сообщение: Re: Regexp matching + typecasts
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Postgres 9.2.8 crash sporadically on Windows