mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
No need to call XLogEnsureRecordSpace when the relation is unlogged.
Amit Kapila
This commit is contained in:
parent
b10a97b819
commit
622983ea69
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user