Re: Are rules transaction safe?

From: Oliver Fürst <ofuerst(at)tsak(dot)net>
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Are rules transaction safe?
Date: 2006-01-27 22:34:35
Message-ID: 43DA9FFB.20709@tsak.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Doug,

thanks for your answers so far. I think I should try to discuss that
matter in [pgsql-sql] instead.

On 27.01.2006 21:21, Doug McNaught wrote:
> Oliver Fürst <ofuerst(at)tsak(dot)net> writes:
>
>>Basically I'm worried that the whole "relying on the last value of a
>>sequence" isn't such a great idea.
>
> 'currval()' is specifically written to Do The Right Thing. See the
> docs.

My problem isn't answered in the manual, otherwise I wouldn't have
asked. I know that sequences are working correct for transactions
(either implicit or explicit).

But is nowhere stated if (multiple) commands inside a rule are treated
as an implicit transaction as a whole.

Regards,
Oliver

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2006-01-27 23:18:26 Re: Are rules transaction safe?
Previous Message Alexander Farber 2006-01-27 22:19:26 Basic questions about PQprepare()