Re: [GENERAL] all empty tables

2009-11-14 Thread Craig Ringer
On 15/11/2009 5:04 AM, Merlin Moncure wrote: > On Sat, Nov 14, 2009 at 6:01 AM, Craig Ringer > wrote: >> On 14/11/2009 6:12 PM, Garry Saddington 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

Re: [GENERAL] all empty tables

2009-11-14 Thread Merlin Moncure
On Sat, Nov 14, 2009 at 6:01 AM, Craig Ringer wrote: > On 14/11/2009 6:12 PM, Garry Saddington 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. > > D

Re: [GENERAL] all empty tables

2009-11-14 Thread Craig Ringer
On 14/11/2009 6:12 PM, Garry Saddington 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. Define "empty". In a MVCC database, it's harder than you'd thin

Re: [GENERAL] all empty tables

2009-11-14 Thread Andreas Kretschmer
Garry Saddington 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 loo

Re: [GENERAL] all empty tables

2009-11-14 Thread Peter Eisentraut
On lör, 2009-11-14 at 10:12 +, Garry Saddington 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. select * from pg_class where relkind = 'r' and rel

[GENERAL] all empty tables

2009-11-14 Thread Garry Saddington
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. Regards Garry -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subsc