Thread: Just Make Sure

Just Make Sure

From
"Yudha Setiawan"
Date:
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
 
GOD Bless You All.
 
 
 
Yudha Setiawan.
VoIP
    No.        : 01119311223344

Re: Just Make Sure

From
Oliver Elphick
Date:
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