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 13:46:39
Message-ID: 20090318134639.GA3798@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

http://wiki.postgresql.org/wiki/FAQ

--
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 Andreas Kretschmer 2009-03-18 14:03:33 Re: sql transaction
Previous Message Sebastian Pawłowski 2009-03-18 13:46:00 Re: Query 4-5 times slower after ANALYZE