public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Marcin Barczyński <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: How to troubleshoot: ERROR: cache lookup failed for type?
Date: Fri, 4 Oct 2024 08:40:15 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAOhG4wehVGviLjMVFyn9oYE+faj_1tpcSXD6BKEBVzBTPQh40Q@mail.gmail.com>
References: <CAOhG4wehVGviLjMVFyn9oYE+faj_1tpcSXD6BKEBVzBTPQh40Q@mail.gmail.com>
On 10/4/24 05:09, Marcin Barczyński wrote:
> Hello!
>
> When reindexing a table, PostgreSQL returns the following errors for
> two of its indexes:
>
> Index foo_idx1 on foo failed with error: failed to find parent tuple
> for heap-only tuple at (1162372,1) in table "foo"
> Index foo_idx2 on foo failed with error: failed to find parent tuple
> for heap-only tuple at (1162372,1) in table "foo"
>
> When trying to show the tuple, there is another error message:
>
> SET enable_indexscan = OFF;
> SET enable_tidscan = OFF;
> SELECT ctid, xmin, xmax, * FROM sf.dir_current_part_8 WHERE ctid =
> '(1162372,1)';
>
> ERROR: cache lookup failed for type 1769235301
>
> Searching for oid=1769235301 in pg_class, pg_type, pg_namespace and
> pg_proc returned no results.
>
> It appears to be data corruption.
> It's PostgreSQL 13 and unfortunately, data_checksums are turned off.
What is the complete version number e.g. 13.x?
What prompted the reindex of the table?
Have there been any recent hardware/software issues on the machine?
Does the Postgres log have any relevant information?
Can you pg_dump -t sf.dir_current_part_8?
What is the schema definition for sf.dir_current_part_8?
>
> I would appreciate any suggestions for troubleshooting this issue.
>
> --
> Marcin Barczyński
>
>
--
Adrian Klaver
[email protected]
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: How to troubleshoot: ERROR: cache lookup failed for type?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox