mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
No need to call XLogEnsureRecordSpace when the relation is unlogged.
Amit Kapila
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user