pgsql: Fix amcheck for page checks concurrent to replay of btree page d

2020-05-14 Thread Alexander Korotkov
Fix amcheck for page checks concurrent to replay of btree page deletion amcheck expects at least hikey to always exist on leaf page even if it is deleted page. But replica reinitializes page during replay of page deletion, causing deleted page to have no items. Thus, replay of page deletion can

pgsql: Fix amcheck for page checks concurrent to replay of btree page d

2020-05-14 Thread Alexander Korotkov
Fix amcheck for page checks concurrent to replay of btree page deletion amcheck expects at least hikey to always exist on leaf page even if it is deleted page. But replica reinitializes page during replay of page deletion, causing deleted page to have no items. Thus, replay of page deletion can

pgsql: Fix amcheck for page checks concurrent to replay of btree page d

2020-05-14 Thread Alexander Korotkov
Fix amcheck for page checks concurrent to replay of btree page deletion amcheck expects at least hikey to always exist on leaf page even if it is deleted page. But replica reinitializes page during replay of page deletion, causing deleted page to have no items. Thus, replay of page deletion can