Re: PATCH: psql tab completion for SELECT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edmund Horner <ejrh00(at)gmail(dot)com>
Cc: David Fetter <david(at)fetter(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PATCH: psql tab completion for SELECT
Date: 2021-10-14 04:19:06
Message-ID: 726658.1634185146@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Edmund Horner <ejrh00(at)gmail(dot)com> writes:
> On Fri, 8 Oct 2021 at 20:01, David Fetter <david(at)fetter(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2021-10-14 04:27:08 Re: [RFC] building postgres with meson
Previous Message Peter Geoghegan 2021-10-14 04:18:30 Re: BUG #17212: pg_amcheck fails on checking temporary relations