From: Thomas Spreng <spreng@socket.ch>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Chris Browne <cbbrowne@acm.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Oddly slow queries
Date: Tue, 22 Apr 2008 11:48:01 +0200
Message-ID: <3D0211BE-8936-4705-964F-42E31263D88A@socket.ch> (raw)
In-Reply-To: <dcc563d10804191004l1406fe89r5e2b7ee3931a4348@mail.gmail.com>
References: <3D7728ED-3D36-47E6-9266-351073ED4E11@socket.ch>
<op.t9odybcgcigqcu@apollo13.peufeu.com>
<AE4F81FF-C8BE-44BC-A79D-48EC5BF20162@socket.ch>
<60y77du7qs.fsf@dba2.int.libertyrms.com>
<20B852C4-2ACA-445F-9289-558B6C86BAB4@socket.ch>
<dcc563d10804191004l1406fe89r5e2b7ee3931a4348@mail.gmail.com>
On 19.04.2008, at 19:04, Scott Marlowe wrote:
>>> No, that will certainly NOT just affect write performance; if the
>>> postmaster is busy writing out checkpoints, that will block SELECT
>>> queries that are accessing whatever is being checkpointed.
>>>
>>
>> What I meant is if there are no INSERT's or UPDATE's going on it
>> shouldn't
>> affect SELECT queries, or am I wrong?
>
> But checkpoints only occur every 10 seconds because of a high insert /
> update rate. So, there ARE inserts and updates going on, and a lot of
> them, and they are blocking your selects when checkpoint hits.
>
> While adjusting your background writer might be called for, and might
> provide you with some relief, you REALLY need to find out what's
> pushing so much data into your db at once that it's causing a
> checkpoint storm.
that's correct, there are nightly (at least at the moment) processes
that
insert around 2-3 mio rows and delete about the same amount. I can see
that
those 'checkpoints are occurring too frequently' messages are only
logged
during that timeframe.
I assume that it's normal that so many INSERT's and DELETE's cause the
background writer to choke a little bit. I guess I really need to
adjust the
processes to INSERT and DELETE rows in a slower pace if I want to do
other
queries during the same time.
cheers,
tom
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-performance@postgresql.org
Cc: spreng@socket.ch, scott.marlowe@gmail.com, cbbrowne@acm.org
Subject: Re: Oddly slow queries
In-Reply-To: <3D0211BE-8936-4705-964F-42E31263D88A@socket.ch>
References: <3D7728ED-3D36-47E6-9266-351073ED4E11@socket.ch> <op.t9odybcgcigqcu@apollo13.peufeu.com> <AE4F81FF-C8BE-44BC-A79D-48EC5BF20162@socket.ch> <60y77du7qs.fsf@dba2.int.libertyrms.com> <20B852C4-2ACA-445F-9289-558B6C86BAB4@socket.ch> <dcc563d10804191004l1406fe89r5e2b7ee3931a4348@mail.gmail.com> <3D0211BE-8936-4705-964F-42E31263D88A@socket.ch>
* 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