From: Vijaykumar Jain <vjain@opentable.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: DrakoRod <drakoflames@hotmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: [External] Re: ERROR: cache lookup failed for function 125940
Date: Sun, 19 Aug 2018 20:00:10 +0000
Message-ID: <3D758ECF-529F-4BDF-9150-8D63FD39679E@opentable.com> (raw)
In-Reply-To: <30540.1534706548@sss.pgh.pa.us>
References: <1534700897989-0.post@n3.nabble.com>
<28005.1534703408@sss.pgh.pa.us>
<1534705654693-0.post@n3.nabble.com>
<30540.1534706548@sss.pgh.pa.us>
Hey Tom,
Had a small query here.
If we have streaming replication enabled, and if we have corruption like this due to power loss etc,
is it safe to assume we failover to standby and we should be good (atleast in most cases)
I wanted to understand if the system catalog is corrupted, for some reason, will it/will it not stream replicate the corrupted data to standby.
Or they are a property of an individual database server and will be rebuilt/updated on pg_dump/restore.
I am sorry if I am diverting the Drako's query or if that is not related, I'll ask another question then __
But I guess maybe the answer may help Drako too.
Thanks,
Vijay
On 8/20/18, 12:53 AM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
DrakoRod <drakoflames@hotmail.com> writes:
> I reindex the pg_proc table and reindex finished correctly but I try read
> the tables or make the dump and same error, reindexed the database and show
> me this error:
> ERROR: cache lookup failed for function 125999
This suggests you've actually lost some entries from pg_proc. Have
you had any system crashes or suchlike?
> Any suggestions, If I run pg_upgrade to 10, will these errors be corrected?
No, pg_upgrade can't magically restore data that's not there.
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: vjain@opentable.com, tgl@sss.pgh.pa.us, drakoflames@hotmail.com
Subject: Re: [External] Re: ERROR: cache lookup failed for function 125940
In-Reply-To: <3D758ECF-529F-4BDF-9150-8D63FD39679E@opentable.com>
References: <1534700897989-0.post@n3.nabble.com> <28005.1534703408@sss.pgh.pa.us> <1534705654693-0.post@n3.nabble.com> <30540.1534706548@sss.pgh.pa.us> <3D758ECF-529F-4BDF-9150-8D63FD39679E@opentable.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