From: Tom Lane <tgl@sss.pgh.pa.us>
To: Edmund Horner <ejrh00@gmail.com>
Cc: David Fetter <david@fetter.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: PATCH: psql tab completion for SELECT
Date: Thu, 14 Oct 2021 00:19:06 -0400
Message-ID: <726658.1634185146@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMyN-kBmq+J4Eqh=MVDLhjOO077uQEkbQWfBHSNPGQAUuXG9fw@mail.gmail.com>
References: <CAMyN-kB_xrU4iYdcF1j=tijgO1DSyjtb3j96O4UEj91XZrZcMg@mail.gmail.com>
<CAMyN-kAtgYx7gshnhbrVu8cmcontrj2rV_hXMmZmfP4v2CrW7Q@mail.gmail.com>
<20211008070123.GN18391@fetter.org>
<CAMyN-kBmq+J4Eqh=MVDLhjOO077uQEkbQWfBHSNPGQAUuXG9fw@mail.gmail.com>
Edmund Horner <ejrh00@gmail.com> writes:
> On Fri, 8 Oct 2021 at 20:01, David Fetter <david@fetter.org> wrote:
>> What precisely is this supposed to do?
> The main patch 0001 was to add completion for "SELECT <tab>" using
> attributes, functions, and a couple of hard-coded options.
This sort of thing has been proposed a few times, but never made it to
commit, because there's basically no way to limit the completions to a
usefully small set of possibilities. SQL wasn't designed to make this
easy :-(
> Regarding testing, I can't see any automated tests for tab completion.
src/bin/psql/t/010_tab_completion.pl
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, ejrh00@gmail.com, david@fetter.org
Subject: Re: PATCH: psql tab completion for SELECT
In-Reply-To: <726658.1634185146@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox