pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th

pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th

pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th

pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th

pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th

pgsql: Prevent GIN deleted pages from being reclaimed too early

2018-12-12 Thread Alexander Korotkov
Prevent GIN deleted pages from being reclaimed too early When GIN vacuum deletes a posting tree page, it assumes that no concurrent searchers can access it, thanks to ginStepRight() locking two pages at once. However, since 9.4 searches can skip parts of posting trees descending from the root. Th