Fwd: [GENERAL] Passing NEW to function

From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fwd: [GENERAL] Passing NEW to function
Date: 2003-07-07 08:25:39
Message-ID: 200307071025.39675.darko.prenosil@finteh.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am forwarding this message to HACKERS, because on GENERAL I did not get any
answer. (Sorry for bothering in pre-relase time, I know that you are very
busy.)

---------- Forwarded Message ----------

Subject: [GENERAL] Passing NEW to function
Date: Friday 04 July 2003 12:56
From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: <pgsql-general(at)postgresql(dot)org>

Is there a way to pass NEW or OLD from inside of trigger into some function ?
I have situation where "versions" of row calculations are offten changed, so
I would like to make "case" with function calls depending on version number.
If I make case with actual code inside trigger function, it becomes big and
unreadable.

Any ideas ?

Regards, Darko.

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

-------------------------------------------------------

Browse pgsql-hackers by date

  From Date Subject
Next Message Lauris Bukshis 2003-07-07 11:59:23 Latvian language & upper & lower
Previous Message Philip Yarra 2003-07-07 08:07:27 Re: OSF build fixed