1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Use correct format placeholder for pids

Should be signed, not unsigned.
This commit is contained in:
Peter Eisentraut
2021-04-19 10:43:18 +02:00
parent c64dcc7fee
commit 640b91c3ed
3 changed files with 3 additions and 3 deletions

View File

@ -1541,7 +1541,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
elog(DEBUG1, "serializing snapshot to %s", path);
/* to make sure only we will write to this tempfile, include pid */
sprintf(tmppath, "pg_logical/snapshots/%X-%X.snap.%u.tmp",
sprintf(tmppath, "pg_logical/snapshots/%X-%X.snap.%d.tmp",
LSN_FORMAT_ARGS(lsn), MyProcPid);
/*