Re: all empty tables - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: all empty tables
Date
Msg-id 20091114105732.GA27111@tux
Whole thread Raw
In response to all empty tables  (Garry Saddington <garry@schoolteachers.co.uk>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: all empty tables
Next
From: Craig Ringer
Date:
Subject: Re: all empty tables