Re: Just Make Sure

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Yudha Setiawan <yudha(at)BonBon(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Just Make Sure
Date: 2003-01-29 14:21:02
Message-ID: 1043850061.1756.22.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(dot)Elphick(at)lfix(dot)co(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert M. Meyer 2003-01-29 14:26:41 What filesystem works best for PostgreSQL?
Previous Message Yudha Setiawan 2003-01-29 09:20:11 Just Make Sure