pg_upgrade: Bump MESSAGE_WIDTH.
authorNathan Bossart <[email protected]>
Thu, 24 Aug 2023 17:13:31 +0000 (10:13 -0700)
committerNathan Bossart <[email protected]>
Thu, 24 Aug 2023 17:13:31 +0000 (10:13 -0700)
Commit 7b378237aa added a status message to pg_upgrade that is 60
characters wide.  Since the MESSAGE_WIDTH macro is currently set to
60, there is no space between this new status message and the "ok"
or "failed" indicator appended when the step completes.  To fix
this problem, this commit increases the value of MESSAGE_WIDTH to
62.

Suggested-by: Bharath Rupireddy
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/CALj2ACVVvk1cYLtWVxHv%3DZ1Ubq%3DUES9fhKbUU4c9k4W%2BfEDnbw%40mail.gmail.com
Back-through: 16

src/bin/pg_upgrade/pg_upgrade.h

index 3eea0139c74bd4993b71b91bf972890dd86f7c5f..7afa96716ec781cdedea77b2f4eb2600496991ac 100644 (file)
@@ -22,7 +22,7 @@
 #define MAX_STRING         1024
 #define QUERY_ALLOC            8192
 
-#define MESSAGE_WIDTH      60
+#define MESSAGE_WIDTH      62
 
 #define GET_MAJOR_VERSION(v)   ((v) / 100)