Re: psql \dh: List High-Level (Root) Tables and Indexes
Greg Sabino Mullane <htamfids@gmail.com>
From: Greg Sabino Mullane <htamfids@gmail.com>
To: Sadeq Dousti <msdousti@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>,
"David G. Johnston" <david.g.johnston@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-02-26T00:00:57Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
psql \dP: list partitioned tables and indexes
- 1c5d9270e339 12.0 cited
The patch applies cleanly, and works as advertised. Nice work!
Quick notes:
* doc/src/sgml/ref/psql-ref.sgml
In the varlistentry section, the order should be the same as the other
places (N after m)
Line 1644 has an extra comma
Line 1651, maybe the example is simpler as \dNt to keep the wording better,
because "indexes that are not partitions" looks odd.
These bits:
pg_log_error("Did not find any%s relations named \"%s\".",
no_partition_description, pattern);
are not good for translation. We want things simple with replaceable
args/constants, but not replaceable words.
I think the myopt.title ones are fine.
* bin/psql/help.c:
\\dN[Sx+] [PATTERN] list relation, table, index (no partitions)
better as:
\\dN[Sx+] [PATTERN] list tables and indexes (no partitions)
Cheers,
Greg
--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support