From: Tom Lane <tgl@sss.pgh.pa.us>
To: 石勇虎 <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: Mon, 12 Feb 2018 21:29:33 -0500
Message-ID: <30153.1518488973@sss.pgh.pa.us> (raw)
In-Reply-To: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn>
References: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn>
=?gb2312?B?yq/Twrui?= <SHIYONGHU651@pingan.com.cn> writes:
> In our product database,we met a problem .when we login in the database
> using psql or jdbc ,the response time is very long.
I'm going to guess that this has something to do with very slow population
of the backend's internal caches during the first query of a session.
That suggests bloated system catalogs. Do you have an unusually large
number of database objects (e.g., millions of tables or functions)?
Or is it possible that some transaction(s) transiently created a lot of
objects, and vacuuming hasn't been able to shrink the catalogs back down?
regards, tom lane
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, SHIYONGHU651@pingan.com.cn
Subject: Re: response time is very long in PG9.5.5 using psql or jdbc
In-Reply-To: <30153.1518488973@sss.pgh.pa.us>
References: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn> <30153.1518488973@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