Re: Is function atomic?

From: Wei Weng <wweng(at)kencast(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Is function atomic?
Date: 2001-07-06 17:35:51
Message-ID: 994440962.16301.1.camel@Monet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Does that mean if I used
DECLARE
...
BEGIN
DO_STUFF
END;

the DO_STUFF will not be interrupted (maintain atomicity) even when
multiple threads use the function concurrently?

On 06 Jul 2001 18:13:37 +0200, Peter Eisentraut wrote:
> Wei Weng writes:
>
> > If it is not, is it possible to acquire a lock on a row ? how about a
> > lock on a table?
>
> SQL statements issued by server-side functions operate with the same
> transaction isolation semantics as "normal" SQL statements. However,
> whatever the function does outside the database may obviously have
> different semantics.
>
> --
> Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
>
>

--
Wei Weng
Network Software Engineer
KenCast Inc.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message John Hasler 2001-07-06 17:40:50 Re: Is function atomic?
Previous Message Peter Eisentraut 2001-07-06 17:25:38 Re: Is function atomic?