Re: Megabytes of stats saved after every connection

From: Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Megabytes of stats saved after every connection
Date: 2005-07-28 19:41:29
Message-ID: 42E934E9.9050701@chezphil.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe wrote:
> Yeah, I found these three facets of the OP's system a bit disconcerting:
>
> QUOTE ---
> This is for a web application which uses a new connection for each CGI
> request.
> The server doesn't have a particularly high disk bandwidth and this
> mysterious activity had been the bottleneck for some time.
> The system is a little unusual as one of the databases has tens of
> thousands of tables.
> ENDQUOTE ---
>
> Any two of those choices could cause some issues, but all three together
> are pretty much a death knell for performance, whether or not the
> global/pgstat file is being written or not.

See my previous message for some background about the application and an
example URL. When PostgreSQL is running smoothly, it is not the
bottleneck in the system: all it has to do is read maybe 100k from the
disk (or more likely the cache), do some in-memory sorts and joins, and
pass it to the rest of the application.

As far as I can see it is only because some parts of PostgreSQL have
poor O(num tables) performance that things are slowing down.

--Phil.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Wiersig 2005-07-28 19:43:44 Re: Megabytes of stats saved after every connection
Previous Message Phil Endecott 2005-07-28 19:31:21 Re: Megabytes of stats saved after every connection