pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Arnaud Lesauvage <thewild@freesurf.fr>
Cc: Ragnar <gnari@hive.is>
Cc: Jens Schipkowski <jens.schipkowski@apus.co.at>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow update with simple query
Date: Wed, 13 Dec 2006 09:51:13 -0800
Message-ID: <1166032273.27428.98.camel@archimedes> (raw)
In-Reply-To: <8399.1166028385@sss.pgh.pa.us>
References: <457FDB1E.6040801@freesurf.fr>
	<op.tkhy4jpg81rjf6@xjens.apus.local>
	<457FF0CD.4050606@freesurf.fr>
	<op.tkh10qgw81rjf6@xjens.apus.local>
	<4580025D.2040903@freesurf.fr>
	<1166021340.6369.103.camel@localhost.localdomain>
	<45801A1B.6070200@freesurf.fr>
	<8399.1166028385@sss.pgh.pa.us>

But he's using 8.1.4-- in that version, an explain analyze would list
the time taken to go through triggers, so the fact that we don't see any
of those lines means that it can't be constraint checking, so wouldn't
it have to be the index update overhead?

-- Mark

On Wed, 2006-12-13 at 11:46 -0500, Tom Lane wrote:
> Arnaud Lesauvage <thewild@freesurf.fr> writes:
> > Indeed, the new query does not perform that well :
> 
> > "Hash Join  (cost=112.75..307504.97 rows=2024869 width=355) (actual time=53.995..246443.811 rows=2020061 loops=1)"
> > ...
> > "Total runtime: 2777844.892 ms"
> 
> > I removed all unnecessary indexes on t1 before running the query (I left the index on uid and the multicolumn index containind the updated field).
> > I believe the multicolumn-functional-index computation is taking some time here, isn't it ?
> 
> Given that the plan itself only takes 246 sec, there's *something*
> associated with row insertion that's eating the other 2500+ seconds.
> Either index entry computation or constraint checking ...
> 
> 			regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>                http://archives.postgresql.org



view thread (21+ messages)  latest in thread

Message-ID: <1166032273.27428.98.camel@archimedes>
Permalink:  ../1166032273.27428.98.camel@archimedes/
Also on:    postgresql.org/message-id/1166032273.27428.98.camel@archimedes

 · 

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: mark.lewis@mir3.com, tgl@sss.pgh.pa.us, thewild@freesurf.fr, gnari@hive.is, jens.schipkowski@apus.co.at
  Subject: Re: Slow update with simple query
  In-Reply-To: <1166032273.27428.98.camel@archimedes>

* 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