pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-performance@postgresql.org
To: Lars Feistner <feistner@uni-heidelberg.de>
Subject: Re: very long updates very small tables
Date: Tue, 29 Mar 2011 14:28:14 -0500
Message-ID: <4D91EC7E020000250003BEEC@gw.wicourts.gov> (raw)
In-Reply-To: <4D91EEFA.90707@uni-heidelberg.de>
References: <4D91EEFA.90707@uni-heidelberg.de>

Lars Feistner <feistner@uni-heidelberg.de> wrote:
 
> The log tells me that certain update statements take sometimes
> about 3-10 minutes. But we are talking about updates on tables
> with 1000 to 10000 rows and updates that are supposed to update 1
> row.
 
The top possibilities that come to my mind are:
 
(1)  The tables are horribly bloated.  If autovacuum is off or not
aggressive enough, things can degenerate to this level.
 
(2)  Memory is over-committed and your machine is thrashing.
 
(3)  There are explicit LOCK commands in the software which is
contributing to the blocking.
 
(4)  There is some external delay within the transaction, such as
waiting for user input while the transaction is open.
 
Maybe there's a combination of the above at play.  Can you rule any
of these out?
 
-Kevin



view thread (8+ messages)  latest in thread

Message-ID: <4D91EC7E020000250003BEEC@gw.wicourts.gov>
Permalink:  ../4D91EC7E020000250003BEEC@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D91EC7E020000250003BEEC@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, feistner@uni-heidelberg.de
  Subject: Re: very long updates very small tables
  In-Reply-To: <4D91EC7E020000250003BEEC@gw.wicourts.gov>
  References: <4D91EEFA.90707@uni-heidelberg.de> <4D91EC7E020000250003BEEC@gw.wicourts.gov>

* 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