Skip to content

Commit 339f2d6

Browse files
committed
Rebase to Stamp 15.0
1 parent 90bb5c5 commit 339f2d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3775,7 +3775,8 @@ RelationCopyStorageUsingBuffer(RelFileNode srcnode,
37753775
* relation before starting to copy block by block.
37763776
*/
37773777
memset(buf.data, 0, BLCKSZ);
3778-
smgrextend(smgropen(dstnode, InvalidBackendId), forkNum, nblocks - 1,
3778+
smgrextend(smgropen(dstnode, InvalidBackendId, permanent ? RELPERSISTENCE_PERMANENT
3779+
:RELPERSISTENCE_UNLOGGED), forkNum, nblocks - 1,
37793780
buf.data, true);
37803781

37813782
/* This is a bulk operation, so use buffer access strategies. */

0 commit comments

Comments
 (0)