Commit 622983ea authored by Heikki Linnakangas's avatar Heikki Linnakangas

No need to call XLogEnsureRecordSpace when the relation is unlogged.

Amit Kapila
parent b10a97b8
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment