aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-09-08 14:22:52 +0900
committerMichael Paquier <michael@paquier.xyz>2021-09-08 14:22:52 +0900
commitaa37a439db6bd328d68ce815ab9e12467f42493b (patch)
tree5e49fced47781924d4aebc844a09222e0c20730d
parentbd1788051b02cfddcd9ef0e2fd094972f372b8fd (diff)
downloadpostgresql-aa37a439db6bd328d68ce815ab9e12467f42493b.tar.gz
postgresql-aa37a439db6bd328d68ce815ab9e12467f42493b.zip
Fix compilation warning in ipci.c
A Size had better use %zu when printed. Oversight in bd17880, per buildfarm member lapwing.
-rw-r--r--src/backend/storage/ipc/ipci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c
index 1a408ad77e5..13f3926ff67 100644
--- a/src/backend/storage/ipc/ipci.c
+++ b/src/backend/storage/ipc/ipci.c
@@ -332,6 +332,6 @@ InitializeShmemGUCs(void)
*/
size_b = CalculateShmemSize(NULL);
size_mb = add_size(size_b, (1024 * 1024) - 1) / (1024 * 1024);
- sprintf(buf, "%lu", size_mb);
+ sprintf(buf, "%zu", size_mb);
SetConfigOption("shared_memory_size", buf, PGC_INTERNAL, PGC_S_OVERRIDE);
}