aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-01-11 21:49:00 +0100
committerPeter Eisentraut <peter@eisentraut.org>2024-01-11 21:49:00 +0100
commit35bc310c04a477376778f437a56f0fcfb504c9c3 (patch)
tree518f3b26281bd3a97c1486f70abcf77667e93b27 /src
parentcf64d4e99f6480ad6d73af82bfbbf2b2e637a7ec (diff)
downloadpostgresql-35bc310c04a477376778f437a56f0fcfb504c9c3.tar.gz
postgresql-35bc310c04a477376778f437a56f0fcfb504c9c3.zip
Fix incorrect format placeholder
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_upgrade/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/info.c b/src/bin/pg_upgrade/info.c
index 190dd53a427..74e02b3f826 100644
--- a/src/bin/pg_upgrade/info.c
+++ b/src/bin/pg_upgrade/info.c
@@ -756,7 +756,7 @@ get_db_subscription_count(DbInfo *dbinfo)
conn = connectToServer(&old_cluster, dbinfo->db_name);
res = executeQueryOrDie(conn, "SELECT count(*) "
- "FROM pg_catalog.pg_subscription WHERE subdbid = %d",
+ "FROM pg_catalog.pg_subscription WHERE subdbid = %u",
dbinfo->db_oid);
dbinfo->nsubs = atoi(PQgetvalue(res, 0, 0));