pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: David Gould <daveg@sonic.net>
Cc: 石勇虎 <SHIYONGHU651@pingan.com.cn>
Cc: pgsql-bugs@postgresql.org
Subject: Re: response time is very long in PG9.5.5 using psql or jdbc
Date: Tue, 13 Feb 2018 17:06:36 -0500
Message-ID: <7656.1518559596@sss.pgh.pa.us> (raw)
In-Reply-To: <20180213213110.5ip4hsnu2hjz52ae@alap3.anarazel.de>
References: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn>
	<30153.1518488973@sss.pgh.pa.us>
	<a82e97e75d05417da514e2c82dd8fb51@pingan.com.cn>
	<30157.1518548280@sss.pgh.pa.us>
	<20180213132447.0a26f00c@engels>
	<20180213213110.5ip4hsnu2hjz52ae@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> I can obviously see problems with a bloated catalog, but how does that
> cause massive slowdowns in *individual* queries as we see here?  The
> OP's problem isn't the connection establishment performance afaict, but
> the first query using specific pieces of catalog data. And that should
> be ok-ish performancewise, even if there's bloat.

Yeah, I'm confused about it too.  I'm wondering if there's some
as-yet-unrecognized effect like the ones discussed here:
https://www.postgresql.org/message-id/flat/4F9AC452.3050102%40pgexperts.com
and here:
https://www.postgresql.org/message-id/flat/20120524173325.GA5533%40tinybird.home

Now, those issues seemed to be associated with needing to rebuild the
relcache init file, so you wouldn't expect them to repeat on every
connection ... but maybe the OP has something going on that causes the
init file to get invalidated constantly.  That'd have to be on top of
some other massive performance problem, but at least you could see how
catalog bloat could possibly lead to this type of symptom, seeing that
init file rebuild requires some catalog seqscans.

			regards, tom lane




view thread (11+ messages)  latest in thread

Message-ID: <7656.1518559596@sss.pgh.pa.us>
Permalink:  ../7656.1518559596@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7656.1518559596@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, andres@anarazel.de, daveg@sonic.net, SHIYONGHU651@pingan.com.cn
  Subject: Re: response time is very long in PG9.5.5 using psql or jdbc
  In-Reply-To: <7656.1518559596@sss.pgh.pa.us>
  References: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn> <30153.1518488973@sss.pgh.pa.us> <a82e97e75d05417da514e2c82dd8fb51@pingan.com.cn> <30157.1518548280@sss.pgh.pa.us> <20180213132447.0a26f00c@engels> <20180213213110.5ip4hsnu2hjz52ae@alap3.anarazel.de> <7656.1518559596@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