Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 82D7163291E for ; Tue, 13 Jul 2010 14:39:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 19878-03 for ; Tue, 13 Jul 2010 17:39:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by mail.postgresql.org (Postfix) with ESMTP id 21EAA6324A7 for ; Tue, 13 Jul 2010 14:39:43 -0300 (ADT) Received: from mh3.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh3.mail.rice.edu (Postfix) with ESMTP id CBE7B324030; Tue, 13 Jul 2010 12:39:41 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.0 at mh3.mail.rice.edu Received: from mh3.mail.rice.edu ([127.0.0.1]) by mh3.mail.rice.edu (mh3.mail.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yycI9AQ0alUu; Tue, 13 Jul 2010 12:39:41 -0500 (CDT) Received: from aart.is.rice.edu (aart.is.rice.edu [168.7.56.48]) by mh3.mail.rice.edu (Postfix) with ESMTP id A2781324027; Tue, 13 Jul 2010 12:39:41 -0500 (CDT) Received: by aart.is.rice.edu (Postfix, from userid 18612) id 5BD922D5A6; Tue, 13 Jul 2010 12:39:41 -0500 (CDT) Date: Tue, 13 Jul 2010 12:39:40 -0500 From: Kenneth Marshall To: Deron Cc: pgsql-admin@postgresql.org Subject: Re: cache lookup for operator ... Message-ID: <20100713173940.GK11581@aart.is.rice.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/61 X-Sequence-Number: 35080 On Tue, Jul 13, 2010 at 10:29:42AM -0700, Deron wrote: > Hello, > > I am trying to determine what might cause an issue like this. This was a > large (several hundred GB) data warehouse server with PG 8.2.4. I can't > really determine what caused this issue. We ended up restoring the data > from a backup. > > Here are some of the errors in the log: > > postmaster.1:Jul 11 14:13:36 postgres[18051]: [8-1] ERROR: cache lookup > failed for operator 660 > > postmaster.1:Jul 11 15:27:00 postgres[26428]: [2-1] ERROR: cache lookup > failed for operator 93 > > Attempting to list the tables using psql: > > #\dt > > ERROR: operator does not exist: oid = oid > > LINE 6: JOIN pg_catalog.pg_roles r ON r.oid = c.relowner > > ^ > > HINT: No operator matches the given name and argument type(s). You may need > to add explicit type casts. > > Deron Could it be the result of running an over 3 year old version of 8.2? Try checking the release notes for the last 13 releases and see if any of the fixes might apply to your situation. I would certainly upgrade to prevent future problems and data loss. There are good reasons for all of the point releases for the major PostgreSQL releases. Maybe someone else can remember details of a problem such as yours. Good luck. Ken