From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marek Florianczyk <franki@tpi.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance problem - 10.000 databases
Date: Wed, 05 Nov 2003 13:34:22 -0500
Message-ID: <3767.1068057262@sss.pgh.pa.us> (raw)
In-Reply-To: <1068056378.28827.172.camel@franki-laptop.tpi.pl>
References: <1067594647.22286.57.camel@franki-laptop.tpi.pl>
<9643.1067610219@sss.pgh.pa.us>
<1068039213.28814.116.camel@franki-laptop.tpi.pl>
<3453.1068055189@sss.pgh.pa.us>
<1068056378.28827.172.camel@franki-laptop.tpi.pl>
Marek Florianczyk <franki@tpi.pl> writes:
> But did you do that under some database load ? eg. 100 clients
> connected, like in my example ? When I do these queries "\d" without any
> clients connected and after ANALYZE it's fast, but only 100 clients is
> enough to lengthen query time to 30 sec. :(
Then it's not \d's fault --- you simply don't have enough horsepower to
support 100 concurrent clients, regardless of what specific query you're
testing.
You might find that not reconnecting so often would improve matters;
I'm sure that a lot of your cycles are being taken by backend startup.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, franki@tpi.pl
Subject: Re: performance problem - 10.000 databases
In-Reply-To: <3767.1068057262@sss.pgh.pa.us>
References: <1067594647.22286.57.camel@franki-laptop.tpi.pl> <9643.1067610219@sss.pgh.pa.us> <1068039213.28814.116.camel@franki-laptop.tpi.pl> <3453.1068055189@sss.pgh.pa.us> <1068056378.28827.172.camel@franki-laptop.tpi.pl> <3767.1068057262@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