From: Wei Weng <wweng@kencast.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Is function atomic?
Date: 06 Jul 2001 13:35:51 -0400
Message-ID: <994440962.16301.1.camel@Monet> (raw)
In-Reply-To: <Pine.LNX.4.30.0107061811060.679-100000@peter.localdomain>
References: <Pine.LNX.4.30.0107061811060.679-100000@peter.localdomain>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: wweng@kencast.com, peter_e@gmx.net
Subject: Re: Is function atomic?
In-Reply-To: <994440962.16301.1.camel@Monet>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox