From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michel Pelletier <pelletier.michel@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: invalid non-zero objectSubId for object class
Date: Thu, 09 Jul 2020 19:18:00 -0400
Message-ID: <2012735.1594336680@sss.pgh.pa.us> (raw)
In-Reply-To: <CACxu=vLUD4WRwbFEGXTTdqqAiYTDn5JZ+R9cxJnsvQPpPffm=w@mail.gmail.com>
References: <CACxu=vLUD4WRwbFEGXTTdqqAiYTDn5JZ+R9cxJnsvQPpPffm=w@mail.gmail.com>
Michel Pelletier <pelletier.michel@gmail.com> writes:
> On a 12.3 AWS RDS instance, I get the following error when trying to drop
> either of two tables:
> dev=> drop table current_flight;
> ERROR: invalid non-zero objectSubId for object class 297108
> dev=> drop table flight;
> ERROR: invalid non-zero objectSubId for object class 297108
This looks like corrupt data in pg_depend, specifically an entry or
entries with classid or refclassid = 297108, which should not happen
(the classid should always be the OID of one of a short list of system
catalogs). You could try poking around in pg_depend to see if you
can identify any obviously-bogus rows.
No idea how it got that way. Have you had any database crashes or the
like?
regards, tom lane
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, pelletier.michel@gmail.com
Subject: Re: invalid non-zero objectSubId for object class
In-Reply-To: <2012735.1594336680@sss.pgh.pa.us>
References: <CACxu=vLUD4WRwbFEGXTTdqqAiYTDn5JZ+R9cxJnsvQPpPffm=w@mail.gmail.com> <2012735.1594336680@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