pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Anders K. Pedersen <akp@cohaesio.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Queries sometimes take 1000 times the normal time
Date: Wed, 27 Aug 2003 19:39:08 -0400
Message-ID: <28672.1062027548@sss.pgh.pa.us> (raw)
In-Reply-To: <bijdiq$tor$1@harrier.cohaesio.com>
References: <bijdiq$tor$1@harrier.cohaesio.com>

"Anders K. Pedersen" <akp@cohaesio.com> writes:
> Currently there's only a few users in the database for testing purposes, 
> and most of the time the user lookup's take 2-3 ms (I have syslog'ing of 
> queries and duration turned on), but several times per hour the duration 
> for one of the queries is 2-3 seconds (1000 times larger), while the 
> surrounding lookups take the usual 2-3 ms.

One thing that comes to mind is that the slow query could be occurring
at the same time as a checkpoint, or some other cycle-chewing background
operation.  It's not clear why a checkpoint would slow things down that
much, though.  Anyway I'd suggest looking for such activities; once we
know if that's the issue or not, we can make some progress.

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <28672.1062027548@sss.pgh.pa.us>
Permalink:  ../28672.1062027548@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28672.1062027548@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, akp@cohaesio.com
  Subject: Re: Queries sometimes take 1000 times the normal time
  In-Reply-To: <28672.1062027548@sss.pgh.pa.us>
  References: <bijdiq$tor$1@harrier.cohaesio.com> <28672.1062027548@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