pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Windsor <simon.windsor@cornfield.me.uk>
Cc: pgsql-general@postgresql.org
Subject: Re: Error XX000 After pg11 upgrade
Date: Thu, 15 Aug 2019 11:31:58 -0400
Message-ID: <29076.1565883118@sss.pgh.pa.us> (raw)
In-Reply-To: <CADHu9spiU5O9vH2Avjsd4gfJ8DxvO0wOvj=eD=z104KPWyzVrg@mail.gmail.com>
References: <CADHu9spiU5O9vH2Avjsd4gfJ8DxvO0wOvj=eD=z104KPWyzVrg@mail.gmail.com>

Simon Windsor <simon.windsor@cornfield.me.uk> writes:
> I have just upgraded a Db from pg 10.5 to pg11.4 and almost immediately we
> are seeing errors like
> ERROR,XX000,"cache lookup failed for type 22079"
> When inserting into a a partitioned table. About 30% of inserts are
> reporting this error.

Hmm ... can you show the full schema (eg, psql \d+ output) for the
partitioned table and its children?  Is there any pattern to the
failing inserts, eg do they all resolve as inserts to the same
partition(s)?

> ... And an insert trigger uses the current date to dertmine where the
> object is stored.

In other words, this isn't actual partitioning as introduced in v10,
but a hand-rolled equivalent?

> How do I determine what type 22079 refers to?

Presumably, the problem is that that type OID *doesn't* refer to anything
any more.  You should be asking "where is this dangling reference coming
from?".  It's possibly hiding in the partitioning expression(s) of
this partitioned table, but there's no way to tell with this amount
of info.

How did you do the upgrade exactly?

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <29076.1565883118@sss.pgh.pa.us>
Permalink:  ../29076.1565883118@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29076.1565883118@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, simon.windsor@cornfield.me.uk
  Subject: Re: Error XX000 After pg11 upgrade
  In-Reply-To: <29076.1565883118@sss.pgh.pa.us>
  References: <CADHu9spiU5O9vH2Avjsd4gfJ8DxvO0wOvj=eD=z104KPWyzVrg@mail.gmail.com> <29076.1565883118@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