Re: Transaction in plpgsql function?

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: MaFa <mafalista(at)freemail(dot)hu>
Cc: "pgsql-novice(at)postgresql(dot)" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Transaction in plpgsql function?
Date: 2003-11-23 16:47:09
Message-ID: 1069606029.5769.328.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, 2003-11-23 at 11:39, MaFa wrote:
> Hi All,
>
> could someone tell me, how can I start explicitly a transaction in a plpgsql
> function? The begin/commit doesn't work.. :-(

You don't. All of a function takes place inside a transaction. If
there is no explicit transaction already, an implicit one will have been
started.

--
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
========================================
"The LORD is nigh unto all them that call upon him, to
all that call upon him in truth."
Psalms 145:18

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message MaFa 2003-11-23 18:21:48 Re: Transaction in plpgsql function?
Previous Message MaFa 2003-11-23 11:39:10 Transaction in plpgsql function?