>>>>> "KC" == Ken Corey <[EMAIL PROTECTED]> writes:

 KC> Hi All!
 KC> Are the BEGIN/END; seen in a typical PL/PGSQL function a transaction wrapper, 
 KC> or do I need to add another BEGIN/END block?

No, BEGIN & END in plpgsql function are not transaction control
statemens, but elements of plpgsql language. 

 KC> Should I just put a 'rollback' in the function, or do I need to do something 
 KC> special?

You _cannot_ use any transaction control statemens (commit, rollback)
into plpgsql function. So all the function must be in transaction block.

-- 
Anatoly K. Lasareff                 Email:    [EMAIL PROTECTED] 
http://tolikus.hq.aaanet.ru:8080    Phone:      (8632)-710071

Reply via email to