On Thu, Jun 24, 2010 at 7:19 PM, Alvaro Herrera
> Excerpts from Craig James's message of jue jun 24 19:03:00 -0400 2010:
>> select relname, pg_relation_size(relname) from pg_class
>> where pg_get_userbyid(relowner) = 'emol_warehouse_1'
>> and relname not like 'pg_%'
>> order by pg_relation_size(relname) desc;
>> ERROR: relation "rownum_temp" does not exist
>> emol_warehouse_1=> select relname from pg_class where relname = 'rownum_temp';
>> (1 row)
> What's the full row? I'd just add a "WHERE relkind = 'r'" to the above
> query anyway.
Yeah - also, it would probably be good to call pg_relation_size on
pg_class.oid rather than pg_class.relname, to avoid any chance of
confusion over which objects are in which schema.
The Enterprise Postgres Company
In response to
pgsql-performance by date
|Next:||From: Tom Lane||Date: 2010-06-25 04:04:52|
|Subject: Re: Occasional giant spikes in CPU load |
|Previous:||From: Greg Smith||Date: 2010-06-25 01:13:39|
|Subject: Re: Occasional giant spikes in CPU load|