Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1976B475D39 for ; Sat, 14 Sep 2002 00:23:39 -0400 (EDT) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id AD034475AD4 for ; Sat, 14 Sep 2002 00:23:34 -0400 (EDT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id g8E4RYf04297 for ; Sat, 14 Sep 2002 09:57:34 +0530 Message-ID: <001801c25ba7$095a3cd0$1201a8c0@a4005> From: "shreedhar" To: "Postgres" Subject: Is it possible to get the return value of trigger function using PHP or any other method. Date: Sat, 14 Sep 2002 09:57:28 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/159 X-Sequence-Number: 5698 Hi All, I would like to put one query which is firing trigger in transactions(Begin, commit and rollback). If the trigger function success then i have to commit transaction, if fails i have to rollback. How can I send return value of trigger function after executing the query. Is it possible to get the return value of trigger function using PHP or any other method. I am using PHP as scripting language, and plpgsql for trigger function. Regards, Sreedhar Bhaskararaju 1,2nd Main Road, KottuGardens, Chennai - 600 085 Ph : 4475111 Email : shreedhar@lucidindia.net