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

Thanks Richard,

Until the last version of my application i couldn't know which record is
different of another. But i saw that someone created a new column and i
guess that i could know if its the first one or ther other 3...

Thank you very much...

-----Original Message-----
From: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Richard Huxton
Sent: Thursday, March 09, 2006 11:42 AM
To: Flávio Suguimoto
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Problems with disabling triggers in Postgres 7.3.9


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


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend





view thread (7+ messages)  latest in thread

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