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 13:41:12
Message-ID: 20090318134112.GA15189@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

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 Sebastian Pawłowski 2009-03-18 13:46:00 Re: Query 4-5 times slower after ANALYZE
Previous Message Gregory Stark 2009-03-18 13:35:23 Re: Query 4-5 times slower after ANALYZE