Skip site navigation (1) Skip section navigation (2)

Re: requested shared memory size overflows size_t

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Craig James <craig_james(at)emolecules(dot)com>, pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: requested shared memory size overflows size_t
Date: 2010-06-25 03:05:06
Message-ID: AANLkTikWnvbzpgUr17fWe44lQkTmmIdqYwfx323FQ14K@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On Thu, Jun 24, 2010 at 7:19 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> 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';
>>         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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2010-06-25 04:04:52
Subject: Re: Occasional giant spikes in CPU load
Previous:From: Greg SmithDate: 2010-06-25 01:13:39
Subject: Re: Occasional giant spikes in CPU load

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group