Re: Is function atomic?

Поиск
Список
Период
Сортировка
От Wei Weng
Тема Re: Is function atomic?
Дата
Msg-id 994440962.16301.1.camel@Monet
обсуждение исходный текст
Ответ на Re: Is function atomic?  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Is function atomic?
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: Is function atomic?