pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Flávio Suguimoto <flavio.suguimoto@pragyatechnologies.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problems with disabling triggers in Postgres 7.3.9
Date: Thu, 09 Mar 2006 14:41:45 +0000
Message-ID: <44103EA9.5040902@archonet.com> (raw)
In-Reply-To: <GFEGIFLJJCMGLBLAHILKIECHCGAA.flavio.suguimoto@pragyatechnologies.com>
References: <GFEGIFLJJCMGLBLAHILKIECHCGAA.flavio.suguimoto@pragyatechnologies.com>

Flávio Suguimoto wrote:
> Hi Richard,
> 
> I have that trigger running on AFTER INSERT of participation table. That
> trigger inserts 3 new record for each line i inserted in participation.

Yes, but WHY? What problem are you trying to solve.

Presumably there is some difference between the first "participation" 
row and the other 3 - the status, the ticket-number, something. Test for 
that difference and you'll know whether you'll need to insert those 3 
extra rows or not.

-- 
   Richard Huxton
   Archonet Ltd




view thread (7+ messages)  latest in thread

Message-ID: <44103EA9.5040902@archonet.com>
Permalink:  ../44103EA9.5040902@archonet.com/
Also on:    postgresql.org/message-id/44103EA9.5040902@archonet.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-sql@postgresql.org
  Cc: dev@archonet.com, flavio.suguimoto@pragyatechnologies.com
  Subject: Re: Problems with disabling triggers in Postgres 7.3.9
  In-Reply-To: <44103EA9.5040902@archonet.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