summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-07-26 12:45:13 +0000
committerPeter Eisentraut2024-07-26 12:55:42 +0000
commit5687f8c0dd766acb15587a0af8b5208aa3841b21 (patch)
treeb877d7feed498fb76191b41447e4fa4772b36924
parentef7fa900fb587cbaac9f3e943f789155b97aa02b (diff)
pg_createsubscriber: Message style improvements
Refactor some messages, improve quoting.
-rw-r--r--src/bin/pg_basebackup/pg_createsubscriber.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/pg_basebackup/pg_createsubscriber.c b/src/bin/pg_basebackup/pg_createsubscriber.c
index 02841032335..b02318782a6 100644
--- a/src/bin/pg_basebackup/pg_createsubscriber.c
+++ b/src/bin/pg_basebackup/pg_createsubscriber.c
@@ -897,8 +897,8 @@ check_publisher(const struct LogicalRepInfo *dbinfo)
{
pg_log_error("publisher requires %d replication slots, but only %d remain",
num_dbs, max_repslots - cur_repslots);
- pg_log_error_hint("Consider increasing max_replication_slots to at least %d.",
- cur_repslots + num_dbs);
+ pg_log_error_hint("Increase the configuration parameter \"%s\" to at least %d.",
+ "max_replication_slots", cur_repslots + num_dbs);
failed = true;
}
@@ -906,8 +906,8 @@ check_publisher(const struct LogicalRepInfo *dbinfo)
{
pg_log_error("publisher requires %d wal sender processes, but only %d remain",
num_dbs, max_walsenders - cur_walsenders);
- pg_log_error_hint("Consider increasing max_wal_senders to at least %d.",
- cur_walsenders + num_dbs);
+ pg_log_error_hint("Increase the configuration parameter \"%s\" to at least %d.",
+ "max_wal_senders", cur_walsenders + num_dbs);
failed = true;
}
@@ -1003,8 +1003,8 @@ check_subscriber(const struct LogicalRepInfo *dbinfo)
{
pg_log_error("subscriber requires %d replication slots, but only %d remain",
num_dbs, max_repslots);
- pg_log_error_hint("Consider increasing max_replication_slots to at least %d.",
- num_dbs);
+ pg_log_error_hint("Increase the configuration parameter \"%s\" to at least %d.",
+ "max_replication_slots", num_dbs);
failed = true;
}
@@ -1012,8 +1012,8 @@ check_subscriber(const struct LogicalRepInfo *dbinfo)
{
pg_log_error("subscriber requires %d logical replication workers, but only %d remain",
num_dbs, max_lrworkers);
- pg_log_error_hint("Consider increasing max_logical_replication_workers to at least %d.",
- num_dbs);
+ pg_log_error_hint("Increase the configuration parameter \"%s\" to at least %d.",
+ "max_logical_replication_workers", num_dbs);
failed = true;
}
@@ -1021,8 +1021,8 @@ check_subscriber(const struct LogicalRepInfo *dbinfo)
{
pg_log_error("subscriber requires %d worker processes, but only %d remain",
num_dbs + 1, max_wprocs);
- pg_log_error_hint("Consider increasing max_worker_processes to at least %d.",
- num_dbs + 1);
+ pg_log_error_hint("Increase the configuration parameter \"%s\" to at least %d.",
+ "max_worker_processes", num_dbs + 1);
failed = true;
}