diff options
| author | Amit Kapila | 2026-04-23 08:40:03 +0000 |
|---|---|---|
| committer | Amit Kapila | 2026-04-23 08:40:03 +0000 |
| commit | 2e1d4fdb10e6636a7ab64f801d880b4d326ab822 (patch) | |
| tree | b772333a04aa8c0a5b3d8137e8af1b251bbddc06 /src/bin | |
| parent | 71123a5454fbb0cf7f44ef1151e32d650be4cc31 (diff) | |
psql: Improve describe footer titles for publications.
The psql describe (`\d`) footer titles were previously unintuitive when
listing publications that included or excluded specific tables. Even
though the tag for included publications was pre-existing, it is better
to update it to "Included in publications:" to match the phrasing of
the "Excluded from publications:" tag.
Footer titles for sequence and schema descriptions have been updated
similarly to maintain consistency.
Reported-by: Álvaro Herrera <alvherre@kurilemu.de>
Author: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Reviewed-by: Yuchen Li <liyuchen_xyz@163.com>
Discussion: https://postgr.es/m/aeDs7iZUox1bbKAK%40alvherre.pgsql
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/psql/describe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 4a1ab873260..e1449654f96 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -1895,7 +1895,7 @@ describeOneTableDetails(const char *schemaname, if (nrows > 0) { - printfPQExpBuffer(&tmpbuf, _("Publications:")); + printfPQExpBuffer(&tmpbuf, _("Included in publications:")); for (i = 0; i < nrows; i++) appendPQExpBuffer(&tmpbuf, "\n \"%s\"", PQgetvalue(result, i, 0)); @@ -3263,7 +3263,7 @@ describeOneTableDetails(const char *schemaname, tuples = PQntuples(result); if (tuples > 0) - printTableAddFooter(&cont, _("Publications:")); + printTableAddFooter(&cont, _("Included in publications:")); /* Might be an empty set - that's ok */ for (i = 0; i < tuples; i++) @@ -3306,7 +3306,7 @@ describeOneTableDetails(const char *schemaname, tuples = PQntuples(result); if (tuples > 0) - printTableAddFooter(&cont, _("Except publications:")); + printTableAddFooter(&cont, _("Excluded from publications:")); /* Might be an empty set - that's ok */ for (i = 0; i < tuples; i++) @@ -5533,11 +5533,11 @@ listSchemas(const char *pattern, bool verbose, bool showSystem) { /* * Allocate memory for footers. Size of footers will be 1 (for - * storing "Publications:" string) + publication schema mapping - * count + 1 (for storing NULL). + * storing "Included in publications:" string) + publication + * schema mapping count + 1 (for storing NULL). */ footers = pg_malloc_array(char *, 1 + pub_schema_tuples + 1); - footers[0] = pg_strdup(_("Publications:")); + footers[0] = pg_strdup(_("Included in publications:")); /* Might be an empty set - that's ok */ for (i = 0; i < pub_schema_tuples; i++) |
