Unix Technical Forum

Order of triggers

This is a discussion on Order of triggers within the pgsql Novice forums, part of the PostgreSQL category; --> Hi, In my database, I am creating several triggers, some tables have more than one trigger for the same ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 10:51 PM
Didier Gasser-Morlay
 
Posts: n/a
Default Order of triggers

Hi,

In my database, I am creating several triggers, some tables have more
than one trigger for the same Fire/Event (ie BEFORE INSERT)
combination.

How can I know in which order the triggers will fire or how can I
force a specific order to be used ?

In firebird, I used to use a "Position" parameter to determine the
order, is there an equivalent in PostgreSQL ?

Thanks for your help

Didier

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 10:51 PM
A. Kretschmer
 
Posts: n/a
Default Re: Order of triggers

am Thu, dem 24.01.2008, um 15:50:12 +0100 mailte Didier Gasser-Morlay folgendes:
> Hi,
>
> In my database, I am creating several triggers, some tables have more
> than one trigger for the same Fire/Event (ie BEFORE INSERT)
> combination.
>
> How can I know in which order the triggers will fire or how can I
> force a specific order to be used ?
>
> In firebird, I used to use a "Position" parameter to determine the
> order, is there an equivalent in PostgreSQL ?


The triggers fires alphabetical.


Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com