1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00

Message style improvements

Some message style improvements in new code, and some small
refactorings to make translations easier.
This commit is contained in:
Peter Eisentraut
2025-06-16 11:14:39 +02:00
parent f83f14881c
commit a876464abc
16 changed files with 70 additions and 63 deletions

View File

@@ -1949,7 +1949,7 @@ exec_command_gexec(PsqlScanState scan_state, bool active_branch)
{
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
{
pg_log_error("\\gexec not allowed in pipeline mode");
pg_log_error("\\%s not allowed in pipeline mode", "gexec");
clean_extended_state();
return PSQL_CMD_ERROR;
}
@@ -1975,7 +1975,7 @@ exec_command_gset(PsqlScanState scan_state, bool active_branch)
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
{
pg_log_error("\\gset not allowed in pipeline mode");
pg_log_error("\\%s not allowed in pipeline mode", "gset");
clean_extended_state();
return PSQL_CMD_ERROR;
}
@@ -3287,7 +3287,7 @@ exec_command_watch(PsqlScanState scan_state, bool active_branch,
if (PQpipelineStatus(pset.db) != PQ_PIPELINE_OFF)
{
pg_log_error("\\watch not allowed in pipeline mode");
pg_log_error("\\%s not allowed in pipeline mode", "watch");
clean_extended_state();
success = false;
}