| От | Gokulakannan Somasundaram |
|---|---|
| Тема | Deadlock possibility in _bt_check_unique? |
| Дата | |
| Msg-id | 9362e74e1003230253o751a776cha25cf15747d87e6a@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: Deadlock possibility in _bt_check_unique?
|
| Список | pgsql-hackers |
Hi,<br /> With the implementation of deferred unique constraints, we need to go back to the index second time to checkwhether the unique check is valid. Say a situation occurs like this<br />a) the first session doing the unique checkfinds out that there is a unique check required second time and just makes its entry and comes back<br /> b) the secondsession doing the unique check finds out that there is a unique check required second time and just makes its entryand comes back<br /><br />While they do the second check, first session will wait for the session to complete and viceversa. Won't this result in a deadlock? Isn't this a realistic scenario?<br /><br />Thanks,<br />Gokul.<br />
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера