pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Marc G. Fournier <scrappy@postgresql.org>
Cc: Aldor <an@mediaroot.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: What is syslog:duration reporting ... ?
Date: Thu, 25 Aug 2005 13:59:40 -0600
Message-ID: <20050825195940.GA54140@winnie.fuhr.org> (raw)
In-Reply-To: <20050825195508.GA54074@winnie.fuhr.org>
References: <20050825152428.T1044@ganymede.hub.org>
	<430E12F1.1080206@mediaroot.de>
	<20050825155331.V1044@ganymede.hub.org>
	<20050825195508.GA54074@winnie.fuhr.org>

On Thu, Aug 25, 2005 at 01:55:08PM -0600, Michael Fuhr wrote:
> Are the updates happening inside a transaction?  Is it possible
> that they're being blocked by other transactions that update the
> same record around the same time and don't commit immediately?
> I can duplicate the results you're seeing by doing that.

As for why you don't see long durations with EXPLAIN ANALYZE, here's
a possible explanation: "ordinary" updates of the same record might
happen close together because that's how the application works, but
by the time you run EXPLAIN ANALYZE no other transactions are updating
that record so the update executes immediately.

-- 
Michael Fuhr



view thread (11+ messages)  latest in thread

Message-ID: <20050825195940.GA54140@winnie.fuhr.org>
Permalink:  ../20050825195940.GA54140@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050825195940.GA54140@winnie.fuhr.org

 · 

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-admin@postgresql.org
  Cc: mike@fuhr.org, scrappy@postgresql.org, an@mediaroot.de
  Subject: Re: What is syslog:duration reporting ... ?
  In-Reply-To: <20050825195940.GA54140@winnie.fuhr.org>
  References: <20050825152428.T1044@ganymede.hub.org> <430E12F1.1080206@mediaroot.de> <20050825155331.V1044@ganymede.hub.org> <20050825195508.GA54074@winnie.fuhr.org> <20050825195940.GA54140@winnie.fuhr.org>

* 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