diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/gin/ginfast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/gin/ginfast.c b/src/backend/access/gin/ginfast.c index fd81d675570..f559a2f3d80 100644 --- a/src/backend/access/gin/ginfast.c +++ b/src/backend/access/gin/ginfast.c @@ -552,7 +552,8 @@ shiftList(Relation index, Buffer metabuffer, BlockNumber newHead, * prepare the XLogInsert machinery for that before entering the * critical section. */ - XLogEnsureRecordSpace(data.ndeleted, 0); + if (RelationNeedsWAL(index)) + XLogEnsureRecordSpace(data.ndeleted, 0); START_CRIT_SECTION(); |