From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: m.kiianov@rtk-dc.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15640: FATAL: XX000: cannot read pg_class without having selected a database
Date: Mon, 18 Feb 2019 12:32:43 -0500
Message-ID: <31217.1550511163@sss.pgh.pa.us> (raw)
In-Reply-To: <20190218164412.GA7740@alvherre.pgsql>
References: <20190218164412.GA7740@alvherre.pgsql>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2019-Feb-18, Andres Freund wrote:
>> My initial guess would be that one of the extensions registered a
>> relcache callback, and does catalog accesses in an unconditional manner.
> Hmm but why is extension code running in autovacuum launcher?
Anything registered in shared_preload_libraries is going to be active
in every process. I don't particularly believe Andres' theory that
CacheRegisterRelcacheCallback is involved, but it seems very likely
that one of these extensions has hooked into some code path that the
launcher can traverse, and it's doing more than is safe there.
If this weren't a production database, I'd suggest changing that error
to a PANIC so we could get a stack trace. That would almost certainly
pinpoint the culprit.
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, andres@anarazel.de, m.kiianov@rtk-dc.ru
Subject: Re: BUG #15640: FATAL: XX000: cannot read pg_class without having selected a database
In-Reply-To: <31217.1550511163@sss.pgh.pa.us>
References: <20190218164412.GA7740@alvherre.pgsql> <31217.1550511163@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