Re: sql transaction

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: sql transaction
Date: 2009-03-18 14:12:17
Message-ID: 20090318141217.GD3798@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Kretschmer wrote:
> 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...

So add it to the German FAQ, and ask someone to translate it to english?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ray Stell 2009-03-18 14:45:46 Re: postmaster never finishes starting up, silent to boot
Previous Message Andreas Kretschmer 2009-03-18 14:03:33 Re: sql transaction