Re: Seems like bug in 9.1.3, need to confirm. - Mailing list pgsql-general

From Tom Lane
Subject Re: Seems like bug in 9.1.3, need to confirm.
Date
Msg-id 25658.1387584767@sss.pgh.pa.us
Whole thread Raw
In response to Seems like bug in 9.1.3, need to confirm.  (AI Rumman <rummandba@gmail.com>)
List pgsql-general
AI Rumman <rummandba@gmail.com> writes:
> I executed the following query and got an error:
>  select relname, pg_size_pretty(pg_table_size(relname::text)) as s from
> pg_stat_user_tables order by pg_table_size(relname::text) desc  limit 10;
> ERROR:  relation "tab_20130206" does not exist

Use the OID, not the relname, else you'll have issues with any table
that's not in your search_path.

            regards, tom lane


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: window function and order by
Next
From: Adrian Klaver
Date:
Subject: Re: pg_upgrade & tablespaces