Re: PostgreSQL 9.0b1 - Error when checking table sizes - Mailing list pgsql-bugs

From Stephen Frost
Subject Re: PostgreSQL 9.0b1 - Error when checking table sizes
Date
Msg-id 20100528003046.GO21875@tamriel.snowman.net
Whole thread Raw
In response to Re: PostgreSQL 9.0b1 - Error when checking table sizes  (Thom Brown <thombrown@gmail.com>)
List pgsql-bugs
* Thom Brown (thombrown@gmail.com) wrote:
> psql -U postgres -d test -c "select tablename,
> pg_size_pretty(pg_table_size(tablename::regclass)) from pg_tables
> where schemaname =3D 'public' order by tablename;"
>=20
> And this, for some reason, works... which is how I did it the other
> day (hence why I've only just got the error today).

public is in your search_path by default- that's why it works.  Still,
it's not really a *good* approach.  Use the one that Tom showed.

    Thanks,

        Stephen

pgsql-bugs by date:

Previous
From: Thom Brown
Date:
Subject: Re: PostgreSQL 9.0b1 - Error when checking table sizes
Next
From: "Kurt wagner"
Date:
Subject: BUG #5479: PosgreSQL Documentation does not mention OPEN