pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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 10:25:50 -0500
Message-ID: <17473.1550503550@sss.pgh.pa.us> (raw)
In-Reply-To: <15640-58e01e10b362cc7f@postgresql.org>
References: <15640-58e01e10b362cc7f@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> 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
> 2019-02-18 05:30:36 GMT [40267]: [7-1] db=,user= LOG:  00000: autovacuum
> launcher process (PID 40378) exited with exit code 1

Hm.  So something is trying to access pg_class (perhaps only on the way to
reading something else) inside the autovacuum launcher, which it cannot
do because the launcher isn't connected to any specific database.

I have not heard of such behavior in core Postgres, which makes me think
that the problem is in one of your extensions.  You mention

> shared_preload_libraries = 'pg_stat_statements, timescaledb,
> pg_wait_sampling, repmgr, auto_explain'

I'd suggest removing entries from shared_preload_libraries one at a
time to see if the problem stops occurring.  (Obviously, you have to
restart the postmaster each time you change the list.)  Once you've
found the culprit, closer analysis would be possible.

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <17473.1550503550@sss.pgh.pa.us>
Permalink:  ../17473.1550503550@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17473.1550503550@sss.pgh.pa.us

 · 

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 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, m.kiianov@rtk-dc.ru
  Subject: Re: BUG #15640: FATAL: XX000: cannot read pg_class without having selected a database
  In-Reply-To: <17473.1550503550@sss.pgh.pa.us>
  References: <15640-58e01e10b362cc7f@postgresql.org> <17473.1550503550@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