Deadlock possibility in _bt_check_unique? - Mailing list pgsql-hackers

From Gokulakannan Somasundaram
Subject Deadlock possibility in _bt_check_unique?
Date
Msg-id 9362e74e1003230253o751a776cha25cf15747d87e6a@mail.gmail.com
Whole thread Raw
Responses Re: Deadlock possibility in _bt_check_unique?
List 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 by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Proposal: access control jails (and introduction as aspiring GSoC student)
Next
From: Heikki Linnakangas
Date:
Subject: Re: Deadlock possibility in _bt_check_unique?