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: Tue, 13 Feb 2018 13:58:00 -0500
Message-ID: <30157.1518548280@sss.pgh.pa.us> (raw)
In-Reply-To: <a82e97e75d05417da514e2c82dd8fb51@pingan.com.cn>
References: <72aa8c39225549dd8c1d18f96df8b1e3@pingan.com.cn>
<30153.1518488973@sss.pgh.pa.us>
<a82e97e75d05417da514e2c82dd8fb51@pingan.com.cn>
=?gb2312?B?yq/Twrui?= <SHIYONGHU651@pingan.com.cn> writes:
> Yes,we have more than 500 thousand of objects,and the total size of the database is almost 10TB.Just as you said,we may need to reduce the objects number,or you have any better solution?
Hmph. I tried creating 500000 tables in a test database, and couldn't
detect any obvious performance problem in session startup. So there's
something very odd about your results. You might try looking at the
sizes of the system catalogs, e.g like
select pg_size_pretty(pg_total_relation_size('pg_attribute'));
(In my test database, pg_class is about 80MB and pg_attribute about
800MB.)
> And I also have a question that if the backend's internal caches of catalog is shared with other users or sessions?if the pgbouncer is usefull?
pgbouncer or some other connection pooler would help, yes. But I don't
think the underlying performance ought to be this bad to begin with.
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: <30157.1518548280@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>
* 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