pgsql: Fix deadlock between ginDeletePage() and ginStepRight()

2019-11-19 Thread Alexander Korotkov
Fix deadlock between ginDeletePage() and ginStepRight() When ginDeletePage() is about to delete page it locks its left sibling to revise the rightlink. So, it locks pages in right to left manner. Int he same time ginStepRight() locks pages in left to right manner, and that could cause a deadlock

pgsql: Fix deadlock between ginDeletePage() and ginStepRight()

2019-11-19 Thread Alexander Korotkov
Fix deadlock between ginDeletePage() and ginStepRight() When ginDeletePage() is about to delete page it locks its left sibling to revise the rightlink. So, it locks pages in right to left manner. Int he same time ginStepRight() locks pages in left to right manner, and that could cause a deadlock

pgsql: Fix deadlock between ginDeletePage() and ginStepRight()

2019-11-19 Thread Alexander Korotkov
Fix deadlock between ginDeletePage() and ginStepRight() When ginDeletePage() is about to delete page it locks its left sibling to revise the rightlink. So, it locks pages in right to left manner. Int he same time ginStepRight() locks pages in left to right manner, and that could cause a deadlock

pgsql: Fix deadlock between ginDeletePage() and ginStepRight()

2019-11-19 Thread Alexander Korotkov
Fix deadlock between ginDeletePage() and ginStepRight() When ginDeletePage() is about to delete page it locks its left sibling to revise the rightlink. So, it locks pages in right to left manner. Int he same time ginStepRight() locks pages in left to right manner, and that could cause a deadlock