postgres.git / summary / log / commit / refs
commit 25593d7d338232fb855ba563b325237de8f14091
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Fri Apr 16 09:04:04 2021 +0000
First released in: 14.0
psql: Small fixes for better translatability
src/bin/psql/describe.c | 2 +-
src/bin/psql/help.c | 7 ++++---
src/test/regress/expected/psql.out | 6 +++---
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 400b683859c..3e39fdb5452 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -4088,7 +4088,7 @@ listTables(const char *tabtypes, const char *pattern, bool verbose, bool showSys
(showTables || showMatViews || showIndexes))
appendPQExpBuffer(&buf,
",\n am.amname as \"%s\"",
- gettext_noop("Access Method"));
+ gettext_noop("Access method"));
/*
* As of PostgreSQL 9.0, use pg_table_size() to show a more accurate
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 8e3bb38ab1e..97fc680f1f7 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -240,8 +240,8 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\des[+] [PATTERN] list foreign servers\n"));
fprintf(output, _(" \\deu[+] [PATTERN] list user mappings\n"));
fprintf(output, _(" \\dew[+] [PATTERN] list foreign-data wrappers\n"));
- fprintf(output, _(" \\df[anptw][S+] [FUNCPTRN [TYPEPTRN ...]]\n"));
- fprintf(output, _(" list [only agg/normal/procedure/trigger/window] functions\n"));
+ fprintf(output, _(" \\df[anptw][S+] [FUNCPTRN [TYPEPTRN ...]]\n"
+ " list [only agg/normal/procedure/trigger/window] functions\n"));
fprintf(output, _(" \\dF[+] [PATTERN] list text search configurations\n"));
fprintf(output, _(" \\dFd[+] [PATTERN] list text search dictionaries\n"));
fprintf(output, _(" \\dFp[+] [PATTERN] list text search parsers\n"));
@@ -252,7 +252,8 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\dL[S+] [PATTERN] list procedural languages\n"));
fprintf(output, _(" \\dm[S+] [PATTERN] list materialized views\n"));
fprintf(output, _(" \\dn[S+] [PATTERN] list schemas\n"));
- fprintf(output, _(" \\do[S] [OPPTRN [TYPEPTRN [TYPEPTRN]]] list operators\n"));
+ fprintf(output, _(" \\do[S] [OPPTRN [TYPEPTRN [TYPEPTRN]]]\n"
+ " list operators\n"));
fprintf(output, _(" \\dO[S+] [PATTERN] list collations\n"));
fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
fprintf(output, _(" \\dP[itn+] [PATTERN] list [only index/table] partitioned relations [n=nested]\n"));
diff --git a/src/test/regress/expected/psql.out b/src/test/regress/expected/psql.out
index 49139dd3633..1b2f6bc4188 100644
--- a/src/test/regress/expected/psql.out
+++ b/src/test/regress/expected/psql.out
@@ -2846,7 +2846,7 @@ Access method: heap
-- AM is displayed for tables, indexes and materialized views.
\d+
List of relations
- Schema | Name | Type | Owner | Persistence | Access Method | Size | Description
+ Schema | Name | Type | Owner | Persistence | Access method | Size | Description
-----------------+--------------------+-------------------+----------------------+-------------+---------------+---------+-------------
tableam_display | mat_view_heap_psql | materialized view | regress_display_role | permanent | heap_psql | 0 bytes |
tableam_display | tbl_heap | table | regress_display_role | permanent | heap | 0 bytes |
@@ -2856,7 +2856,7 @@ Access method: heap
\dt+
List of relations
- Schema | Name | Type | Owner | Persistence | Access Method | Size | Description
+ Schema | Name | Type | Owner | Persistence | Access method | Size | Description
-----------------+---------------+-------+----------------------+-------------+---------------+---------+-------------
tableam_display | tbl_heap | table | regress_display_role | permanent | heap | 0 bytes |
tableam_display | tbl_heap_psql | table | regress_display_role | permanent | heap_psql | 0 bytes |
@@ -2864,7 +2864,7 @@ Access method: heap
\dm+
List of relations
- Schema | Name | Type | Owner | Persistence | Access Method | Size | Description
+ Schema | Name | Type | Owner | Persistence | Access method | Size | Description
-----------------+--------------------+-------------------+----------------------+-------------+---------------+---------+-------------
tableam_display | mat_view_heap_psql | materialized view | regress_display_role | permanent | heap_psql | 0 bytes |
(1 row)
[parent: 254a2164e5b2]