Re: sql transaction - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: sql transaction
Date
Msg-id 20090318134112.GA15189@tux
Whole thread Raw
In response to sql transaction  (Jasid ZA <za.jasid@gmail.com>)
Responses Re: sql transaction  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: sql transaction  (Gurjeet Singh <singh.gurjeet@gmail.com>)
List pgsql-general
Jasid ZA <za.jasid@gmail.com> wrote:

> Hi,
>
> Can we use sql transactions(BEGIN, ROllBACK, COMMIT etc) in a postgresql
> function(user defined) which is written in PL/Perl?

No. A function is an autonomous transaction. You can use savepoints.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: Ashish Karalkar
Date:
Subject: Re: Report all Comments
Next
From: Gregory Stark
Date:
Subject: Re: Query 4-5 times slower after ANALYZE