Commit 5883f5fe authored by Tom Lane's avatar Tom Lane

Fix unportable printf format introduced in commit 9290ad19.

"%ld" is not an acceptable format spec for int64 variables, though
it accidentally works on most non-Windows 64-bit platforms.  Follow
the lead of commit 6a1cd8b9, and use "%lld" with an explicit cast
to long long.  Per buildfarm.
parent e0487223
...@@ -3644,8 +3644,11 @@ UpdateSpillStats(LogicalDecodingContext *ctx) ...@@ -3644,8 +3644,11 @@ UpdateSpillStats(LogicalDecodingContext *ctx)
MyWalSnd->spillCount = rb->spillCount; MyWalSnd->spillCount = rb->spillCount;
MyWalSnd->spillBytes = rb->spillBytes; MyWalSnd->spillBytes = rb->spillBytes;
elog(DEBUG2, "UpdateSpillStats: updating stats %p %ld %ld %ld", elog(DEBUG2, "UpdateSpillStats: updating stats %p %lld %lld %lld",
rb, rb->spillTxns, rb->spillCount, rb->spillBytes); rb,
(long long) rb->spillTxns,
(long long) rb->spillCount,
(long long) rb->spillBytes);
SpinLockRelease(&MyWalSnd->mutex); SpinLockRelease(&MyWalSnd->mutex);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment