From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: all empty tables |
Date: | 2009-11-14 10:57:32 |
Message-ID: | 20091114105732.GA27111@tux |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Garry Saddington <garry(at)schoolteachers(dot)co(dot)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°
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2009-11-14 11:01:36 | Re: all empty tables |
Previous Message | Peter Eisentraut | 2009-11-14 10:54:44 | Re: all empty tables |