Skip to content

Commit bff62df

Browse files
committed
Reestablish alignment of pg_controldata output.
Until 9.4, pg_controldata output was all aligned. At some point during 9.5 development, a new item was added, namely "Current track_commit_timestamp setting:" which is two characters too long to be aligned with the rest of the output. Fix this by removing the noise word "Current" and adding the requisite number of padding spaces. Since the six preceding items are also similar in nature, remove "Current" and pad those as well in order to maintain overall consistency. Backpatch to 9.5 where new offending item was added.
1 parent 7c0c4d0 commit bff62df

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/bin/pg_controldata/pg_controldata.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -290,19 +290,19 @@ main(int argc, char *argv[])
290290
(uint32) ControlFile.backupEndPoint);
291291
printf(_("End-of-backup record required: %s\n"),
292292
ControlFile.backupEndRequired ? _("yes") : _("no"));
293-
printf(_("Current wal_level setting: %s\n"),
293+
printf(_("wal_level setting: %s\n"),
294294
wal_level_str(ControlFile.wal_level));
295-
printf(_("Current wal_log_hints setting: %s\n"),
295+
printf(_("wal_log_hints setting: %s\n"),
296296
ControlFile.wal_log_hints ? _("on") : _("off"));
297-
printf(_("Current max_connections setting: %d\n"),
297+
printf(_("max_connections setting: %d\n"),
298298
ControlFile.MaxConnections);
299-
printf(_("Current max_worker_processes setting: %d\n"),
299+
printf(_("max_worker_processes setting: %d\n"),
300300
ControlFile.max_worker_processes);
301-
printf(_("Current max_prepared_xacts setting: %d\n"),
301+
printf(_("max_prepared_xacts setting: %d\n"),
302302
ControlFile.max_prepared_xacts);
303-
printf(_("Current max_locks_per_xact setting: %d\n"),
303+
printf(_("max_locks_per_xact setting: %d\n"),
304304
ControlFile.max_locks_per_xact);
305-
printf(_("Current track_commit_timestamp setting: %s\n"),
305+
printf(_("track_commit_timestamp setting: %s\n"),
306306
ControlFile.track_commit_timestamp ? _("on") : _("off"));
307307
printf(_("Maximum data alignment: %u\n"),
308308
ControlFile.maxAlign);

0 commit comments

Comments
 (0)