Re: Savepoints inside functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Savepoints inside functions
Date: 2004-07-27 15:19:24
Message-ID: 28762.1090941564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>>> If we get savepoints working inside functions, would they work if the
>>> function is not called from a multi-statement transaction?
>>
>> We'll make sure they do ;-)

> That will be a neat trick because it will become a multi-statement
> transaction when it wasn't before.

Not really. At most it might require relaxing a couple of asserts in
the state machine in xact.c.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kris Jurka 2004-07-27 16:07:22 Re: casting strings to multidimensional arrays yields strange
Previous Message Tom Lane 2004-07-27 15:03:46 Re: why is postgres-R not in standard dev Path.