pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alessandro Aste <alessandro.aste@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: cache lookup failed for attribute 1 of relation XXXXXX
Date: Thu, 19 Jul 2018 11:39:45 -0400
Message-ID: <839.1532014785@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM9F+O1kod1Tt4ApVWcyESwBzpRTezifW6g3MmM7kQj77vO_yw@mail.gmail.com>
References: <CAM9F+O0ko=Bb=9z+y2A0_4Da2JYEnYXO0kX35WY1xvfECS+tjg@mail.gmail.com>
	<21687.1532011279@sss.pgh.pa.us>
	<CAM9F+O1kod1Tt4ApVWcyESwBzpRTezifW6g3MmM7kQj77vO_yw@mail.gmail.com>

[ please keep the list cc'd for the archives' sake ]

Alessandro Aste <alessandro.aste@gmail.com> writes:
> Hello Tom, thanks for your reply:
>  SELECT * FROM pg_class  WHERE OID = 2223152859 ;
> (0 rows)
> I'm not aware of any DDL at that time.

Hm.  Well, that OID was definitely there when pg_dump looked, and
it's not there now, so something changed --- though we can't prove
it changed concurrently.

In any case, I'd bet that if we ran this to ground it would prove to be a
concurrent-DDL issue.  pg_dump tries to protect itself against concurrent
DDL, but for assorted architectural reasons the protection is not 100%;
sometimes you can get odd failures like this, essentially due to "clock
skew" between pg_dump's view of the catalogs and the server's view of the
catalogs.  As long as it works on retry, I wouldn't worry too much about
it.

			regards, tom lane




view thread (4+ messages)  latest in thread

Message-ID: <839.1532014785@sss.pgh.pa.us>
Permalink:  ../839.1532014785@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/839.1532014785@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alessandro.aste@gmail.com
  Subject: Re: cache lookup failed for attribute 1 of relation XXXXXX
  In-Reply-To: <839.1532014785@sss.pgh.pa.us>
  References: <CAM9F+O0ko=Bb=9z+y2A0_4Da2JYEnYXO0kX35WY1xvfECS+tjg@mail.gmail.com> <21687.1532011279@sss.pgh.pa.us> <CAM9F+O1kod1Tt4ApVWcyESwBzpRTezifW6g3MmM7kQj77vO_yw@mail.gmail.com> <839.1532014785@sss.pgh.pa.us>

* 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