pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marcin Barczynski <mbarczynski@starfishstorage.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Establishing a local connection to PostgreSQL 9.6 takes seconds
Date: Wed, 16 Jun 2021 10:10:11 -0400
Message-ID: <646103.1623852611@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOhG4wdds=GsnrOK83Fgw2WZQaR7ziF6P5zb-eZ6xogfpAyhTw@mail.gmail.com>
References: <CAOhG4wdds=GsnrOK83Fgw2WZQaR7ziF6P5zb-eZ6xogfpAyhTw@mail.gmail.com>

Marcin Barczynski <mbarczynski@starfishstorage.com> writes:
> It's always /opt/prod/pg/9.6/base/18370/1108887031. Unfortunately, no trace
> of it in pg_class:

It's probably a mapped system catalog, which will have relfilenode = 0.
Try

SELECT relname FROM pg_class WHERE pg_relation_filenode(oid) = 1108887031;

My guess is that whichever catalog it is is badly bloated.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <646103.1623852611@sss.pgh.pa.us>
Permalink:  ../646103.1623852611@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/646103.1623852611@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mbarczynski@starfishstorage.com
  Subject: Re: Establishing a local connection to PostgreSQL 9.6 takes seconds
  In-Reply-To: <646103.1623852611@sss.pgh.pa.us>
  References: <CAOhG4wdds=GsnrOK83Fgw2WZQaR7ziF6P5zb-eZ6xogfpAyhTw@mail.gmail.com> <646103.1623852611@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