Trigger disactivation and SELECT WAITING

From: "Philippe Lang" <philippe(dot)lang(at)attiksystem(dot)ch>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Trigger disactivation and SELECT WAITING
Date: 2005-07-26 06:57:42
Message-ID: 6C0CF58A187DA5479245E0830AF84F42080678@poweredge.attiksystem.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a database with views that can take up to 2 hours to be
calculated.

During that time, it's not possible to run a function that inserts data
into the database, apparently because this function disactivates a
trigger while it runs, by deleting and creating the trigger again at the
end. (At least in 7.4.X database, this is the only solution, right?)

Running "ps -afxu" show that the process that tries to insert data gets
stuck in the "SELECT WAITING" state.

Is there a solution to this?

Thanks!

----------------------------------
Philippe Lang
Attik System

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2005-07-26 10:33:55 Re: constraint problem
Previous Message Tom Lane 2005-07-26 03:02:30 Re: pgsql client/server compatibility matrix?