Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AAA36476B36 for ; Wed, 29 Jan 2003 09:21:16 -0500 (EST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by postgresql.org (Postfix) with ESMTP id 283AB4763E8 for ; Wed, 29 Jan 2003 09:21:00 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 18dt5K-0000Mb-0d; Wed, 29 Jan 2003 14:21:03 +0000 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18dt5K-0003OS-00; Wed, 29 Jan 2003 14:21:02 +0000 Subject: Re: Just Make Sure From: Oliver Elphick To: Yudha Setiawan Cc: pgsql-admin@postgresql.org In-Reply-To: <017201c2c777$b47cf940$ea00a8c0@yudha> References: <017201c2c777$b47cf940$ea00a8c0@yudha> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1043850061.1756.22.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 29 Jan 2003 14:21:02 +0000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/328 X-Sequence-Number: 7170 On Wed, 2003-01-29 at 09:20, Yudha Setiawan wrote: > Dear Master; > So There's no way to put the Begin Work, Commit Work or Rollback > inside Trigger's Function...???? > Some Explanation will be better :b No. All triggers happen within a transaction, whether explicit or implicit and transactions cannot be nested. In addition, BEGIN has a different meaning in PL/pgSQL. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "My son, if sinners entice thee, consent thou not." Proverbs 1:10