From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
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 08:42:47 -0800
Message-ID: <20190218164247.5jvu7gotnz4sw4jn@alap3.anarazel.de> (raw)
In-Reply-To: <28802.1550507389@sss.pgh.pa.us>
References: <20190218144555.GA4579@alvherre.pgsql>
<28802.1550507389@sss.pgh.pa.us>
Hi,
On 2019-02-18 11:29:49 -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > On 2019-Feb-18, PG Bug reporting form wrote:
> >> 2019-02-18 05:30:36 GMT [40378]: [2-1] db=,user= FATAL: XX000: cannot read pg_class without having selected a database
> >> 2019-02-18 05:30:36 GMT [40378]: [3-1] db=,user= LOCATION: ScanPgRelation, relcache.c:314
>
> > Hmm, I wonder if this is a bug introduced in 6a46aba1cd6d (in 9.6.10)
> > that only hits autovacuum launcher after a relcache init removal at just
> > the wrong time, or something like that?
I don't immediately see how that'd be the culprit - we'd processed
sinvals in some cases before that change too. I'm inclined to think
Tom's guess is the right one, but ...
My initial guess would be that one of the extensions registered a
relcache callback, and does catalog accesses in an unconditional manner.
> I think/hope that the launcher isn't connected to sinval, either.
Hm, I don't think that's true? The launcher does InitPostgres() and
everything (albeit without a database). And it needs to process
relmapper updates, otherwise it can't access pg_database. And that's
accessed via a normal heap_open().
Greetings,
Andres Freund
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: andres@anarazel.de, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, m.kiianov@rtk-dc.ru
Subject: Re: BUG #15640: FATAL: XX000: cannot read pg_class without having selected a database
In-Reply-To: <20190218164247.5jvu7gotnz4sw4jn@alap3.anarazel.de>
References: <20190218144555.GA4579@alvherre.pgsql> <28802.1550507389@sss.pgh.pa.us> <20190218164247.5jvu7gotnz4sw4jn@alap3.anarazel.de>
* 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