summaryrefslogtreecommitdiff
path: root/src/bin/psql
diff options
context:
space:
mode:
authorPeter Eisentraut2023-05-19 16:45:29 +0000
committerPeter Eisentraut2023-05-19 16:45:29 +0000
commit8e7912e73da008862180112cc6ba4d0aa5fa955d (patch)
tree4b05da87bfb9e8ec1914579f04bc4469451edb6b /src/bin/psql
parente5f85744eaa5ca83ff4d27509ed094ca33ed485e (diff)
Message style improvements
Diffstat (limited to 'src/bin/psql')
-rw-r--r--src/bin/psql/command.c8
-rw-r--r--src/bin/psql/help.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 607a57715a3..95b304aaf68 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -4525,7 +4525,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
popt->topt.expanded_header_exact_width = atoi(value);
if (popt->topt.expanded_header_exact_width == 0)
{
- pg_log_error("\\pset: allowed xheader_width values are full (default), column, page, or a number specifying the exact width.");
+ pg_log_error("\\pset: allowed xheader_width values are \"%s\" (default), \"%s\", \"%s\", or a number specifying the exact width", "full", "column", "page");
return false;
}
}
@@ -4727,11 +4727,11 @@ printPsetInfo(const char *param, printQueryOpt *popt)
else if (strcmp(param, "xheader_width") == 0)
{
if (popt->topt.expanded_header_width_type == PRINT_XHEADER_FULL)
- printf(_("Expanded header width is 'full'.\n"));
+ printf(_("Expanded header width is \"%s\".\n"), "full");
else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_COLUMN)
- printf(_("Expanded header width is 'column'.\n"));
+ printf(_("Expanded header width is \"%s\".\n"), "column");
else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_PAGE)
- printf(_("Expanded header width is 'page'.\n"));
+ printf(_("Expanded header width is \"%s\".\n"), "page");
else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_EXACT_WIDTH)
printf(_("Expanded header width is %d.\n"), popt->topt.expanded_header_exact_width);
}
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index ecfb3c099bf..c6478ed5591 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -410,7 +410,7 @@ helpVariables(unsigned short int pager)
HELP0(" ENCODING\n"
" current client character set encoding\n");
HELP0(" ERROR\n"
- " true if last query failed, else false\n");
+ " \"true\" if last query failed, else \"false\"\n");
HELP0(" FETCH_COUNT\n"
" the number of result rows to fetch and display at a time (0 = unlimited)\n");
HELP0(" HIDE_TABLEAM\n"
@@ -452,7 +452,7 @@ helpVariables(unsigned short int pager)
" SERVER_VERSION_NUM\n"
" server's version (in short string or numeric format)\n");
HELP0(" SHELL_ERROR\n"
- " true if the last shell command failed, false if it succeeded\n");
+ " \"true\" if the last shell command failed, \"false\" if it succeeded\n");
HELP0(" SHELL_EXIT_CODE\n"
" exit status of the last shell command\n");
HELP0(" SHOW_ALL_RESULTS\n"