pgsql: Fix the buffer release order for parallel index scans.

2018-07-26 Thread Amit Kapila
Fix the buffer release order for parallel index scans. During parallel index scans, if the current page to be read is deleted, we skip it and try to get the next page for a scan without releasing the buffer lock on the current page. To get the next page, sometimes it needs to wait for another pro

pgsql: Fix the buffer release order for parallel index scans.

2018-07-26 Thread Amit Kapila
Fix the buffer release order for parallel index scans. During parallel index scans, if the current page to be read is deleted, we skip it and try to get the next page for a scan without releasing the buffer lock on the current page. To get the next page, sometimes it needs to wait for another pro

pgsql: Fix the buffer release order for parallel index scans.

2018-07-26 Thread Amit Kapila
Fix the buffer release order for parallel index scans. During parallel index scans, if the current page to be read is deleted, we skip it and try to get the next page for a scan without releasing the buffer lock on the current page. To get the next page, sometimes it needs to wait for another pro