pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris <dmagick@gmail.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: update query taking too long
Date: Thu, 28 Jun 2007 01:41:10 -0400
Message-ID: <21072.1183009270@sss.pgh.pa.us> (raw)
In-Reply-To: <46834124.5010600@gmail.com>
References: <46834124.5010600@gmail.com>

Chris <dmagick@gmail.com> writes:
> I'm trying to do an update of a reasonably large table and it's taking 
> way too long so I'm trying to work out why and if I need to tweak any 
> settings to speed it up.

Any foreign keys leading to or from that table?

3.5 million row updates are not exactly gonna be instantaneous anyway,
but only FK checks or really slow user-written triggers would make it
take upwards of an hour ...

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <21072.1183009270@sss.pgh.pa.us>
Permalink:  ../21072.1183009270@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21072.1183009270@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dmagick@gmail.com
  Subject: Re: update query taking too long
  In-Reply-To: <21072.1183009270@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