pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <markir@paradise.net.nz>
To: Yves Vindevogel <yves.vindevogel@implements.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: Updates on large tables are extremely slow
Date: Mon, 13 Jun 2005 20:54:23 +1200
Message-ID: <42AD49BF.7050706@paradise.net.nz> (raw)
In-Reply-To: <e61732b6bc4e763c947b526c2c099fbc@implements.be>
References: <579bc853ef3957c736c2773f13c444f7@implements.be>
	<42ACF2DD.8090409@paradise.net.nz>
	<e61732b6bc4e763c947b526c2c099fbc@implements.be>

Apologies - I should have said output of 'VACUUM VERBOSE mytable'.

(been using 8.1, which displays dead tuple info in ANALYZE...).

Mark

Yves Vindevogel wrote:
> rvponp=# analyze verbose tblPrintjobs ;
> INFO: analyzing "public.tblprintjobs"
> INFO: "tblprintjobs": 19076 pages, 3000 rows sampled, 588209 estimated 
> total rows
> ANALYZE
> 
> 
> On 13 Jun 2005, at 04:43, Mark Kirkwood wrote:
> 
>     Yves Vindevogel wrote:
> 
>         I'm trying to update a table that has about 600.000 records.
>         The update query is very simple : update mytable set pagesdesc =
>         - pages ;
>         The query takes about half an hour to an hour to execute. I have
>         tried a lot of things.
> 
> 
>     Half an hour seem a bit long - I would expect less than 5 minutes on
>     reasonable hardware.
> 
>     You may have dead tuple bloat - can you post the output of 'ANALYZE
>     VERBOSE mytable' ?



view thread (15+ messages)  latest in thread

Message-ID: <42AD49BF.7050706@paradise.net.nz>
Permalink:  ../42AD49BF.7050706@paradise.net.nz/
Also on:    postgresql.org/message-id/42AD49BF.7050706@paradise.net.nz

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: markir@paradise.net.nz, yves.vindevogel@implements.be
  Subject: Re: Updates on large tables are extremely slow
  In-Reply-To: <42AD49BF.7050706@paradise.net.nz>

* 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