Fix page modification outside of critical section in GIN
authorAlexander Korotkov
Tue, 19 Nov 2019 21:12:33 +0000 (00:12 +0300)
committerAlexander Korotkov
Tue, 19 Nov 2019 21:17:58 +0000 (00:17 +0300)
commita64e7e05a418ec26a76ecbf04c80e9ba7fe8aa90
tree817466c77d3de54c6a91d1d3d43354d814a04440
parentca05fa5375eb3124660e24346f1bdc3990c118f2
Fix page modification outside of critical section in GIN

By oversight 52ac6cd2d0 makes ginDeletePage() sets pd_prune_xid of page to be
deleted before entering the critical section.  It appears that only versions 11
and later were affected by this oversight.

Backpatch-through: 11
src/backend/access/gin/ginvacuum.c