pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Cc: Ray Ontko <rayo@ontko.com>
Subject: cannot find attribute 1 of relation  (second occurrence.)
Date: Tue, 21 May 2002 09:55:04 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com> (raw)

Hi-

We've just seen the following error for a second time since upgrading to
7.2.1-2:

cannot find attribute 1 of relation <tablename>

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.

Some questions & conjecture:

Has anyone else encountered this problem on 7.2.1-2? The two major recent
changes that I can think of are our upgrade to 7.2 & new hardware. Hardware
seems the likely culprit, but if others have experience similar errors on
7.2, I'd squint more closely at the software.

The first time I encountered this error was on a massive dump file reload.
The second time, the only coincidence I can think of was updating
pg_attribute.atttypmod for several records last night. Could this have
caused my problem?

Any other ideas?

Thanks everyone!

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/




view thread (4+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, rayo@ontko.com
  Subject: Re: cannot find attribute 1 of relation  (second occurrence.)
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com>
  References: <NEBBLAAHGLEEPCGOBHDGAEAEFAAA.nickf@ontko.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox