pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Lane <slane@soliantconsulting.com>
Cc: pgsql-admin@postgresql.org, Jamie Thomas <jthomas@soliantconsulting.com>
Subject: Re: Odd query behavior [urgent, but long]
Date: Wed, 25 Aug 2004 15:16:32 -0400
Message-ID: <2190.1093461392@sss.pgh.pa.us> (raw)
In-Reply-To: <BD523152.1A629%slane@soliantconsulting.com>
References: <BD523152.1A629%slane@soliantconsulting.com>

Steve Lane <slane@soliantconsulting.com> writes:
> I have enabled pretty extensive query logging on the 7.1.3 instance. What I
> see is that certain queries take hideously long.

Tell us about foreign keys associated with the table being updated?
An UPDATE would fire triggers for both referencing and referenced keys ...

I'm suspecting an unindexed or datatype-incompatible foreign key column.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <2190.1093461392@sss.pgh.pa.us>
Permalink:  ../2190.1093461392@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2190.1093461392@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 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: tgl@sss.pgh.pa.us, slane@soliantconsulting.com, jthomas@soliantconsulting.com
  Subject: Re: Odd query behavior [urgent, but long]
  In-Reply-To: <2190.1093461392@sss.pgh.pa.us>
  References: <BD523152.1A629%slane@soliantconsulting.com> <2190.1093461392@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