Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 35C99633471 for ; Thu, 24 Jun 2010 20:32:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92668-05 for ; Thu, 24 Jun 2010 23:32:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 29CC86333F5 for ; Thu, 24 Jun 2010 20:32:40 -0300 (ADT) Received: by pvg2 with SMTP id 2so583941pvg.19 for ; Thu, 24 Jun 2010 16:32:39 -0700 (PDT) Received: by 10.142.151.38 with SMTP id y38mr10030290wfd.219.1277421886990; Thu, 24 Jun 2010 16:24:46 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id x35sm4582253wfh.18.2010.06.24.16.24.45 (version=SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 16:24:46 -0700 (PDT) Message-ID: <4C23E93C.7010504@emolecules.com> Date: Thu, 24 Jun 2010 16:24:44 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Alvaro Herrera , pgsql-performance Subject: Re: System tables screwed up? (WAS requested shared memory size overflows size_t) References: <584872.74177.qm@web39702.mail.mud.yahoo.com> <4C167A8D.1060002@gmail.com> <4C16B97F.4080201@gmail.com> <4C1A96A2.2050607@2ndquadrant.com> <4C1AB3C3.9090606@gmail.com> <20100618124826.GW23529@aart.is.rice.edu> <4C1BB6E9.1090105@2ndquadrant.com> <4C23E424.8040605@emolecules.com> <1277421485-sup-3743@alvh.no-ip.org> In-Reply-To: <1277421485-sup-3743@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/451 X-Sequence-Number: 39307 On 6/24/10 4:19 PM, Alvaro Herrera 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. Thanks, in fact that works. But my concern is that these are system tables and system functions and yet they seem to be confused. I've used this query dozens of times and never seen this behavior before. It makes me really nervous... Craig P.S. Sorry I got the Subject wrong the first time by hitting the REPLY key mindlessly, I've changed it now.