Skip to content

Commit 91f26d5

Browse files
committed
Change extension of spilled ReorderBufferChange data to ".tmp".
The previous extension, ".snap", was chosen for historical reasons and became confusing. Discussion: https://postgr.es/m/CAMp0ubd_P8vBGx8=MfDXQJZxHA5D_Zarw5cCkDxJ_63+pWRJ9w@mail.gmail.com
1 parent e75733d commit 91f26d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/logical/reorderbuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2765,7 +2765,7 @@ ReorderBufferCleanupSerializedTXNs(const char *slotname)
27652765
if (unlink(path) != 0)
27662766
ereport(ERROR,
27672767
(errcode_for_file_access(),
2768-
errmsg("could not remove file \"%s\" during removal of pg_replslot/%s/*.xid: %m",
2768+
errmsg("could not remove file \"%s\" during removal of pg_replslot/%s/xid*: %m",
27692769
path, slotname)));
27702770
}
27712771
}
@@ -2785,7 +2785,7 @@ ReorderBufferSerializedPath(char *path, ReplicationSlot *slot, TransactionId xid
27852785

27862786
XLogSegNoOffsetToRecPtr(segno, 0, wal_segment_size, recptr);
27872787

2788-
snprintf(path, MAXPGPATH, "pg_replslot/%s/xid-%u-lsn-%X-%X.snap",
2788+
snprintf(path, MAXPGPATH, "pg_replslot/%s/xid-%u-lsn-%X-%X.tmp",
27892789
NameStr(MyReplicationSlot->data.name),
27902790
xid,
27912791
(uint32) (recptr >> 32), (uint32) recptr);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy