Re: Is function atomic? - Mailing list pgsql-sql

From Wei Weng
Subject Re: Is function atomic?
Date
Msg-id 994440962.16301.1.camel@Monet
Whole thread Raw
In response to Re: Is function atomic?  (Peter Eisentraut <peter_e@gmx.net>)
List 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@gmx.net   http://funkturm.homeip.net/~peter
> 
> 

-- 
Wei Weng
Network Software Engineer
KenCast Inc.




pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Is function atomic?
Next
From: "Richard Huxton"
Date:
Subject: Re: Is function atomic?