My patch was just committed by Tom (who did most of the work, thank you Tom!). So now you should see much less of "List of relations" in future versions of psql (which is backwards compatible!)
About your changes:
- /* If tabtypes is empty, we default to \dtvmsE (but see also command.c) */
+ /* If tabtypes is empty, we default to \dtivmsE (but see also command.c) */
This was not an oversight: \d defaults to all types EXCEPT indexes, on purpose.
+ if (showViews) {
+ if (cntTitle != 0) {
+ strcat(title, ", ");
+ }
+ strcat(title, "views");
+ cntTitle++;
+ }
...
See discussion on my patch about why we cannot do this for translation reasons. Well, we can do it, but we'd be asking the translators to either handle around 64 new strings, or to forcibly accept some assumptions about how their language should work.
- HELP0(" \\dE[Sx+] [PATTERN] list foreign tables\n");
+ HELP0(" \\dew[x+] [PATTERN] list foreign-data wrappers\n");
HELP0(" \\des[x+] [PATTERN] list foreign servers\n");
- HELP0(" \\det[x+] [PATTERN] list foreign tables\n");
+ HELP0(" \\dE[Sx+] [PATTERN] list foreign tables (basic info)\n");
+ HELP0(" \\det[x+] [PATTERN] list foreign tables (foreign info)\n");
HELP0(" \\deu[x+] [PATTERN] list user mappings\n");
- HELP0(" \\dew[x+] [PATTERN] list foreign-data wrappers\n");
I like this part, it's definitely an improvement.
Cheers,
Greg