Re: Atomar SQL Statement

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Atomar SQL Statement
Дата
Msg-id 279E27B5-183F-4520-BC43-A726A50646EF@seespotcode.net
обсуждение исходный текст
Ответ на Atomar SQL Statement  ("Weber, Johann (ISS Kassel)" <jweber@iss.net>)
Ответы Re: Atomar SQL Statement
Список pgsql-sql
On Jul 7, 2006, at 7:55 , Weber, Johann (ISS Kassel) wrote:

> My concern: in a multi threaded environment, can a second thread
> interrupt this statement and eventually insert the same email  
> address in
> the table with a different id? Or is this statement atomar?

You're safe. Take a look at the FAQ entries on SERIAL:

http://www.postgresql.org/docs/faqs.FAQ.html#item4.11.2

Hope this helps.

Michael Glaesemann
grzm seespotcode net



В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Alternative to serial primary key
Следующее
От: "Sander Steffann"
Дата:
Сообщение: Re: Alternative to serial primary key