Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWFo-0001Nm-7V for pgsql-general@arkaria.postgresql.org; Wed, 16 Jun 2021 14:10:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltWFG-0003aL-9I for pgsql-general@arkaria.postgresql.org; Wed, 16 Jun 2021 14:10:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWFG-0003aD-0U for pgsql-general@lists.postgresql.org; Wed, 16 Jun 2021 14:10:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltWFA-0000Rw-Kp for pgsql-general@lists.postgresql.org; Wed, 16 Jun 2021 14:10:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15GEAB28646104; Wed, 16 Jun 2021 10:10:11 -0400 From: Tom Lane To: Marcin Barczynski cc: pgsql-general@lists.postgresql.org Subject: Re: Establishing a local connection to PostgreSQL 9.6 takes seconds In-reply-to: References: Comments: In-reply-to Marcin Barczynski message dated "Wed, 16 Jun 2021 16:01:18 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <646102.1623852611.1@sss.pgh.pa.us> Date: Wed, 16 Jun 2021 10:10:11 -0400 Message-ID: <646103.1623852611@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marcin Barczynski 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