Re: PATCH: psql tab completion for SELECT
Edmund Horner <ejrh00@gmail.com>
From: Edmund Horner <ejrh00@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Vik Fearing <vik.fearing@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
pgsql-hackers@lists.postgresql.org
Date: 2018-03-06T07:31:31Z
Lists: pgsql-hackers
Attachments
- psql-select-tab-completion-v5.patch (application/octet-stream) patch v5
I've reworked the SELECT completion patch to use the VersionedQuery infrastructure. I've also made it a schema query (for the functions), with an addon for the attributes. This provides schema-aware completion. Previously, addons to schema queries were appended verbatim; I've changed this to use the same interpolation just as in the simple_query case, so that the attributes can be filtered in the query. Otherwise, relevant items can be omitted when they don't make it into the first 1000 rows in the query result, even when only a small number of items are ultimately presented for completion. Edmund
Commits
-
In psql, restore old behavior of Query_for_list_of_functions.
- b6e132ddc860 11.0 landed
-
Add infrastructure to support server-version-dependent tab completion.
- 722408bcd1bd 11.0 landed