mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Use correct format placeholder for pids
Should be signed, not unsigned.
This commit is contained in:
parent
c64dcc7fee
commit
640b91c3ed
@ -1860,7 +1860,7 @@ autovac_balance_cost(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (worker->wi_proc != NULL)
|
if (worker->wi_proc != NULL)
|
||||||
elog(DEBUG2, "autovac_balance_cost(pid=%u db=%u, rel=%u, dobalance=%s cost_limit=%d, cost_limit_base=%d, cost_delay=%g)",
|
elog(DEBUG2, "autovac_balance_cost(pid=%d db=%u, rel=%u, dobalance=%s cost_limit=%d, cost_limit_base=%d, cost_delay=%g)",
|
||||||
worker->wi_proc->pid, worker->wi_dboid, worker->wi_tableoid,
|
worker->wi_proc->pid, worker->wi_dboid, worker->wi_tableoid,
|
||||||
worker->wi_dobalance ? "yes" : "no",
|
worker->wi_dobalance ? "yes" : "no",
|
||||||
worker->wi_cost_limit, worker->wi_cost_limit_base,
|
worker->wi_cost_limit, worker->wi_cost_limit_base,
|
||||||
|
@ -387,7 +387,7 @@ BackgroundWorkerStateChange(bool allow_new_workers)
|
|||||||
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
|
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
|
||||||
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
|
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
|
||||||
{
|
{
|
||||||
elog(DEBUG1, "worker notification PID %lu is not valid",
|
elog(DEBUG1, "worker notification PID %ld is not valid",
|
||||||
(long) rw->rw_worker.bgw_notify_pid);
|
(long) rw->rw_worker.bgw_notify_pid);
|
||||||
rw->rw_worker.bgw_notify_pid = 0;
|
rw->rw_worker.bgw_notify_pid = 0;
|
||||||
}
|
}
|
||||||
|
@ -1541,7 +1541,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
|
|||||||
elog(DEBUG1, "serializing snapshot to %s", path);
|
elog(DEBUG1, "serializing snapshot to %s", path);
|
||||||
|
|
||||||
/* to make sure only we will write to this tempfile, include pid */
|
/* 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);
|
LSN_FORMAT_ARGS(lsn), MyProcPid);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user