Re: all empty tables

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: all empty tables
Дата
Msg-id 20091114105732.GA27111@tux
обсуждение исходный текст
Ответ на all empty tables  (Garry Saddington <garry@schoolteachers.co.uk>)
Список pgsql-general
Garry Saddington <garry@schoolteachers.co.uk> wrote:

> How could I list all the tables in a database that do not contain any data?
> I have looked at reltuples but can't quite work out how to use it, any
> pointers would be much apreciated.

reltuples contains only an estimation, if you need the real values you
need to look at every table.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: all empty tables
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: all empty tables