Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EBF6A1337999 for ; Mon, 3 Jan 2011 12:05:44 -0400 (AST) 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 04777-03 for ; Mon, 3 Jan 2011 16:05:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6F0C3133655C for ; Mon, 3 Jan 2011 12:05:33 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p03G5UD2020083; Mon, 3 Jan 2011 11:05:30 -0500 (EST) To: "Jan-Peter Seifert" cc: pgsql-admin@postgresql.org Subject: Re: Obscure problem due to high system OID or privileges? In-reply-to: <20110103141602.204670@gmx.net> References: <20110103141602.204670@gmx.net> Comments: In-reply-to "Jan-Peter Seifert" message dated "Mon, 03 Jan 2011 15:16:02 +0100" Date: Mon, 03 Jan 2011 11:05:30 -0500 Message-ID: <20082.1294070730@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/5 X-Sequence-Number: 36445 "Jan-Peter Seifert" writes: > During 'start up' the application does a couple of SELECTs on pg_catalog: > SELECT COUNT(*) FROM pg_attribute JOIN pg_type ON pg_attribute.atttypid=pg_type.oid LEFT OUTER JOIN pg_attrdef ON ( pg_attribute.attnum=pg_attrdef.adnum AND pg_attribute.attrelid=pg_attrdef.adrelid ) WHERE pg_attribute.attrelid = 2147483647 AND pg_attribute.attnum >= 0 AND pg_attribute.attisdropped = 'false' Is the table it's looking for really exactly OID 2147483647 (ie 2^31-1)? That seems a bit improbable. I suspect something in your app is choking on an OID that is in fact larger than that, and it's somehow getting clamped to INT_MAX. regards, tom lane