Re: Transaction isolation and constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction isolation and constraints
Дата
Msg-id 11399.1196826397@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Transaction isolation and constraints  (cliff@krumvieda.com)
Ответы Re: Transaction isolation and constraints  (cliff@krumvieda.com)
Список pgsql-general
cliff@krumvieda.com writes:
> suppose a table has a UNIQUE constraint on a column, and two
> concurrent transactions attempt to INSERT a row with the same value
> for that column:

Whichever one manages to get to the index page first will go through.
The second one will block waiting to see if the first one commits,
and will error out if so --- or proceed, if it aborts.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: bug with >to_char('2007-12-31'::DATE, 'YYYYIW')<
Следующее
От: lighthouse.software@gmail.com
Дата:
Сообщение: Re: ldap authentication allows logon with blank password