dbTalk Databases Forums  

[BUGS] BUG #1767: Trigger handling

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1767: Trigger handling in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
THILANKA
 
Posts: n/a

Default [BUGS] BUG #1767: Trigger handling - 07-14-2005 , 12:24 AM







The following bug has been logged online:

Bug reference: 1767
Logged by: THILANKA
Email address: tilankaedu (AT) yahoo (DOT) com
PostgreSQL version: suse 9.0 builti
Operating system: SUSE LINUX
Description: Trigger handling
Details:

Here is the my question.

I tried to pass parameters to the trigger using "new" key word, but it's not
accepted. The purpose of doing that i want to pass some data to a "c" file
and to send the same data into a another database. So in that problem i
faild. If u know how to do that pls send me the way.

thank you......

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

Reply With Quote
  #2  
Old   
Jaime Casanova
 
Posts: n/a

Default Re: [BUGS] BUG #1767: Trigger handling - 07-15-2005 , 04:58 PM






On 7/13/05, THILANKA <tilankaedu (AT) yahoo (DOT) com> wrote:
Quote:
=20
The following bug has been logged online:
=20
Bug reference: 1767
Logged by: THILANKA
Email address: tilankaedu (AT) yahoo (DOT) com
PostgreSQL version: suse 9.0 builti
Operating system: SUSE LINUX
Description: Trigger handling
Details:
=20
Here is the my question.
=20
I tried to pass parameters to the trigger using "new" key word, but it's =
not
accepted. The purpose of doing that i want to pass some data to a "c" file
and to send the same data into a another database. So in that problem i
faild. If u know how to do that pls send me the way.
=20
Triggers doesn't accept parameters at runtime.=20

taken from: http://www.postgresql.org/docs/8.0/s...tetrigger.html

CREATE TRIGGER name { BEFORE | AFTER } { event [ OR ... ] }
ON table [ FOR [ EACH ] { ROW | STATEMENT } ]
EXECUTE PROCEDURE funcname ( arguments )

arguments
An optional comma-separated list of arguments to be provided to the
function when the trigger is executed. The arguments are literal
string constants. Simple names and numeric constants may be written
here, too, but they will all be converted to strings. Please check the
description of the implementation language of the trigger function
about how the trigger arguments are accessible within the function; it
may be different from normal function arguments.

--=20
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator

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

http://archives.postgresql.org


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.