Re: sql transaction

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: sql transaction
Date: 2009-03-18 14:03:33
Message-ID: 20090318140333.GA15715@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:

> Andreas Kretschmer wrote:
> > Jasid ZA <za(dot)jasid(at)gmail(dot)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.
>
> This question comes up very often. Would somebody please write it and a
> detailed answer to add to the FAQ in the Wiki?

I would do it, but unfortunately my english is too bad...

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°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-03-18 14:12:17 Re: sql transaction
Previous Message Alvaro Herrera 2009-03-18 13:46:39 Re: sql transaction