Fix page modification outside of critical section in GIN
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 19 Nov 2019 21:12:33 +0000 (00:12 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 19 Nov 2019 21:12:33 +0000 (00:12 +0300)
commitb107140804817cc30a4069b1bb5545aa3ea0ce6c
tree511b6696336842f07b592fd6795f08d25221d497
parent32ca32d0bed4b95e5cd63998478a7816a89cd43d
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