Re: response time is very long in PG9.5.5 using psql or jdbc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 石勇虎 <SHIYONGHU651(at)pingan(dot)com(dot)cn>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: response time is very long in PG9.5.5 using psql or jdbc
Date: 2018-02-13 02:29:33
Message-ID: 30153.1518488973@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?gb2312?B?yq/Twrui?= <SHIYONGHU651(at)pingan(dot)com(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message 石勇虎 2018-02-13 04:48:37 答复: response time is very long in PG9.5.5 using psql or jdbc
Previous Message Peter Geoghegan 2018-02-13 02:15:31 Re: PostgreSQL crashes with SIGSEGV