Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 182BC4763FA for ; Tue, 21 May 2002 11:41:25 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 38749475FBC for ; Tue, 21 May 2002 11:30:07 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g4LFUAW21006; Tue, 21 May 2002 11:30:11 -0400 (EDT) To: nickf@ontko.com Cc: "pgsql-admin" , "Ray Ontko" Subject: Re: cannot find attribute 1 of relation (second occurrence.) In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Tue, 21 May 2002 09:55:04 -0500" Date: Tue, 21 May 2002 11:30:10 -0400 Message-ID: <21003.1021995010@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200205/169 X-Sequence-Number: 4344 "Nick Fankhauser" writes: > We've just seen the following error for a second time since upgrading to > 7.2.1-2: > cannot find attribute 1 of relation > The first time, Tom Lane helped us by suggesting a reindex of pg_attribute. > I tried this on the second case as well, and it solved the problem. > At this point, I'm concerned because I've never encountered this error > before in about 2 years of postgres use, but now I've seen it twice in the > last two weeks, so I need to figure out why it happened. We haven't seen any other reports of this that I can recall, so I'm leaning towards the bad-hardware theory, but I never like blaming problems on hardware. Next time it happens, would you shut down the postmaster and make a copy of pg_attribute and its indexes (the physical files) to send to me, before you reindex? Eyeballing the remains might give some evidence one way or the other. regards, tom lane