Content-Length: 257779 | pFad | http://github.com/postgrespro/postgres/commit/622983ea6964fc55f1ad3063d3d7b8f5de8e8816

1A No need to call XLogEnsureRecordSpace when the relation is unlogged. · postgrespro/postgres@622983e · GitHub
Skip to content

Commit 622983e

Browse files
committed
No need to call XLogEnsureRecordSpace when the relation is unlogged.
Amit Kapila
1 parent b10a97b commit 622983e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/gin/ginfast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ shiftList(Relation index, Buffer metabuffer, BlockNumber newHead,
552552
* prepare the XLogInsert machinery for that before entering the
553553
* critical section.
554554
*/
555-
XLogEnsureRecordSpace(data.ndeleted, 0);
555+
if (RelationNeedsWAL(index))
556+
XLogEnsureRecordSpace(data.ndeleted, 0);
556557

557558
START_CRIT_SECTION();
558559

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/622983ea6964fc55f1ad3063d3d7b8f5de8e8816

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy