Re: Deferrable Unique Constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deferrable Unique Constraints
Дата
Msg-id 19156.1106835851@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deferrable Unique Constraints  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> I don't see how you're in the clear. If session A does an insert and it
> doesn't see a duplicate and doesn't commit, but then B does an insert and sees
> the duplicate from A and marks his tentative, and then commits, shouldn't B's
> commit succeed?

No.  B, being the second to get there, has to wait to see if A commits
or not.  This is true already and it wouldn't change.  We would
however postpone the wait until B's commit time.
        regards, tom lane


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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Allow GRANT/REVOKE permissions to be applied to all schema objects with one command
Следующее
От: Oleg Bartunov
Дата:
Сообщение: strange 'vacuum verbose analyze' behaviour