aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-07-26 14:45:13 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-07-26 14:55:15 +0200
commitc0c005070817352e217baa430b04161890d9af5a (patch)
tree3a899f00bf9b0a6289fcaf8f1d91e8dcc965ebab
parentf19beba3e3acfd804d678af3f768bee069038486 (diff)
downloadpostgresql-c0c005070817352e217baa430b04161890d9af5a.tar.gz
postgresql-c0c005070817352e217baa430b04161890d9af5a.zip
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;
}