Fix page modification outside of critical section in GIN

Alexander Korotkov <akorotkov@postgresql.org>

Commit: b107140804817cc30a4069b1bb5545aa3ea0ce6c
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2019-11-19T21:12:33Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/access/gin/ginvacuum.c modified +3 −3