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:37:09 -0500
Message-ID: <9029.1518561429@sss.pgh.pa.us> (raw)
In-Reply-To: <20180213222102.ku2o3oy3tvasn3hx@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>
	<7656.1518559596@sss.pgh.pa.us>
	<20180213222102.ku2o3oy3tvasn3hx@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> One of the OP's examples shows the connection establishment separate
> from the slowdown however. Shouldn't that preclude relcache init file
> rebuilds being involved?

Hmm ... I was thinking that psql might be able to produce a prompt before
the connected backend was done initializing, but after a bit more poking
into the code that seems unlikely.  Still, it might be interesting to
verify whether the first command is fast if it's one that requires no
catalog access.  Maybe "set enable_hashjoin = 1" or suchlike (being
careful not to invoke tab completion to type it ;-)).

			regards, tom lane




view thread (11+ messages)  latest in thread

Message-ID: <9029.1518561429@sss.pgh.pa.us>
Permalink:  ../9029.1518561429@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9029.1518561429@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: <9029.1518561429@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> <20180213222102.ku2o3oy3tvasn3hx@alap3.anarazel.de> <9029.1518561429@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