postgresql/src/bin/psql
Tom Lane 90371a24a5 Improve psql's \d command to show whether index columns are key columns.
This is essential information when looking at an index that has
"included" columns.  Per discussion, follow the style used in \dC
and some other places: column header is "Key?" and values are "yes"
or "no" (all translatable).

While at it, revise describeOneTableDetails to be a bit more maintainable:
avoid hard-wired column numbers and multiple repetitions of what needs
to be identical test logic.  This also results in the emitted catalog
query corresponding more closely to what we print, which should be a
benefit to users of ECHO_HIDDEN mode, and perhaps a bit faster too
(the old logic sometimes asked for values it would not print, even
ones that are fairly expensive to get).

Discussion: https://postgr.es/m/21724.1531943735@sss.pgh.pa.us
2018-07-19 14:53:48 -04:00
..
po Translation updates 2018-06-25 12:37:18 +02:00
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
command.c Switch client-side code to include catalog/pg_foo_d.h not pg_foo.h. 2018-04-08 13:59:52 -04:00
command.h Add \if support to pgbench 2018-03-22 17:42:03 +03:00
common.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
common.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
copy.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
copy.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
create_help.pl Restrict vertical tightness to parentheses in Perl code 2018-05-09 10:14:46 -04:00
crosstabview.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
crosstabview.h Fix a boatload of typos in C comments. 2018-04-01 15:01:28 -04:00
describe.c Improve psql's \d command to show whether index columns are key columns. 2018-07-19 14:53:48 -04:00
describe.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
help.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
help.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
input.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
input.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
large_obj.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
large_obj.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
mainloop.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
mainloop.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls.mk Translation updates 2017-08-07 13:55:34 -04:00
prompt.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
prompt.h Add \if support to pgbench 2018-03-22 17:42:03 +03:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
psqlscanslash.l Add \if support to pgbench 2018-03-22 17:42:03 +03:00
settings.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
startup.c Avoid misleading psql password prompt when username is multiply specified. 2018-01-29 12:57:09 -05:00
stringutils.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
stringutils.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
tab-complete.c pgindent run prior to branching 2018-06-30 12:25:49 -04:00
tab-complete.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
variables.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
variables.h Update copyright for 2018 2018-01-02 23:30:12 -05:00