pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Barnard <kevin.barnard@gmail.com>
To: Robert Creager <robert_creager@logicalchaos.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: This query is still running after 10 hours...
Date: Tue, 28 Sep 2004 21:41:50 -0500
Message-ID: <b068057c040928194178244b00@mail.gmail.com> (raw)
In-Reply-To: <20040928202140.4ea9d090@thunder.mshome.net>
References: <20040928081957.7a317a95@thunder.mshome.net>
	<b068057c04092807275edec779@mail.gmail.com>
	<b068057c040928072840890326@mail.gmail.com>
	<20040928202140.4ea9d090@thunder.mshome.net>

On Tue, 28 Sep 2004 20:21:40 -0600, Robert Creager
<robert_creager@logicalchaos.org> wrote:
> 
> The trigger keeps another table (catalog) up to date with the information from the obs_v and obs_i tables.  There are no direct insert/update/delete's on the catalog table, only though the trigger.
> 

It's possible that the update to catalog is what is really taking a
long time.  You might wish to try and explain that query just to make
sure.  You might also wish to disable to trigger just to rule it out. 
Does catalog have any triggers on it?  Does it have any foreign keys?

I've shot myself in the foot on this before which is the only reason I
ask about it.



view thread (10+ messages)  latest in thread

Message-ID: <b068057c040928194178244b00@mail.gmail.com>
Permalink:  ../b068057c040928194178244b00@mail.gmail.com/
Also on:    postgresql.org/message-id/b068057c040928194178244b00@mail.gmail.com

 · 

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: kevin.barnard@gmail.com, robert_creager@logicalchaos.org
  Subject: Re: This query is still running after 10 hours...
  In-Reply-To: <b068057c040928194178244b00@mail.gmail.com>

* 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