aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-07-19 14:53:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-07-19 14:53:48 -0400
commit90371a24a5367c357d7b046383dad8ee352b938b (patch)
tree36810432359e339975ecfdde068c7e85e60b9902 /src/backend/utils/adt/numutils.c
parent028e3da2949482fa56f3ffdbda840782f2953b0b (diff)
downloadpostgresql-90371a24a5367c357d7b046383dad8ee352b938b.tar.gz
postgresql-90371a24a5367c357d7b046383dad8ee352b938b.zip
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
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
0 files changed, 0 insertions, 0 deletions