Re: PATCH: psql tab completion for SELECT

Edmund Horner <ejrh00@gmail.com>

From: Edmund Horner <ejrh00@gmail.com>
To: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2018-03-05T10:33:28Z
Lists: pgsql-hackers
On 5 March 2018 at 21:46, Vik Fearing <vik.fearing@2ndquadrant.com> wrote:
> Tab completion on functions in SELECT (a subset of this thread's patch)
> is quite important to me personally.  I will work on this in the coming
> days.

It's something I've missed numerous times in the last few months at
work.  I guess I should really be running a psql with my own
preliminary patches applied; but I'm only a novice pgsql-hacker, and
easily default to using the official one.

If you are going to work on a patch just for functions, you should
probably make it a SchemaQuery.  I did not find a way to support
schema-qualified functions in a query that also returned column names.

Cheers,
Edmund


Commits

  1. In psql, restore old behavior of Query_for_list_of_functions.

  2. Add infrastructure to support server-version-dependent tab completion.