]> granicus.if.org Git - postgresql/commit
Rationalize Query_for_list_of_[relations] query names in tab-complete.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2018 16:41:00 +0000 (12:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2018 16:41:00 +0000 (12:41 -0400)
commite3b7a6d165d42b59b2432c415d7e4a284a645e89
tree0f12f15eb929d2a35729256cc36cfa6e68e1472b
parentf025bd2ddd07a46560a5fbe8dd4790f153ead705
Rationalize Query_for_list_of_[relations] query names in tab-complete.c.

The previous convention was to use names based on the set of relkinds being
selected for, which was not at all helpful for maintenance, especially
since people had been quite inconsistent about whether to change the names
when they changed the relkinds being selected for.  Instead, use names
based on the functionality we need the relation to have, following the
model established by Query_for_list_of_updatables.

While at it, sort the list of Query constants a bit better; it had the
distinct air of code-assembled-by-dartboard before.

Discussion: https://postgr.es/m/14830.1537481254@sss.pgh.pa.us
src/bin/psql/tab-complete.c