Skip to content
Snippets Groups Projects
Commit 622983ea authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

No need to call XLogEnsureRecordSpace when the relation is unlogged.

Amit Kapila
parent b10a97b8
No related branches found
No related tags found
No related merge requests found
...@@ -552,6 +552,7 @@ shiftList(Relation index, Buffer metabuffer, BlockNumber newHead, ...@@ -552,6 +552,7 @@ shiftList(Relation index, Buffer metabuffer, BlockNumber newHead,
* prepare the XLogInsert machinery for that before entering the * prepare the XLogInsert machinery for that before entering the
* critical section. * critical section.
*/ */
if (RelationNeedsWAL(index))
XLogEnsureRecordSpace(data.ndeleted, 0); XLogEnsureRecordSpace(data.ndeleted, 0);
START_CRIT_SECTION(); START_CRIT_SECTION();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment