| От | Tom Lane |
|---|---|
| Тема | Re: Problems ensuring uniqueness? |
| Дата | |
| Msg-id | 8975.992901854@sss.pgh.pa.us обсуждение |
| Ответ на | Problems ensuring uniqueness? (Christopher Smith <x@xman.org>) |
| Ответы |
Re: Problems ensuring uniqueness?
|
| Список | pgsql-sql |
Christopher Smith <x@xman.org> writes:
>> Um ... surely that should be "if count > 0" ? Or was that just a
>> transcription error?
>>
>> This approach certainly ought to work as desired given the exclusive
>> lock, so a silly typo seems like a plausible explanation...
> Sorry, it is indeed a transcription error (sadly).
Oh well. The next thought, given that you mention threads, is that
you've got multiple threads issuing commands to the same backend
connection; in which case the interlocking you think you have doesn't
exist at all...
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера