Re: psql tab completion for SELECT - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql tab completion for SELECT
Date
Msg-id 13612.1328887227@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql tab completion for SELECT  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: psql tab completion for SELECT
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Feb 10, 2012 at 1:24 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> That seems pretty nearly entirely bogus.  What is the argument for
>> supposing that the word right after SELECT is a function name?

> It isn't necessarily, but it might be.  It'd certainly be nice to type:
> SELECT pg_si<TAB>
> and get:
> SELECT pg_size_pretty(

Yeah, and then you'll type
SELECT pg_size_pretty(pg_dat<TAB>

and get nothing, and curse the authors of such a misbegotten incomplete
concept that leads your fingers to rely on something that doesn't work
where it should.

I'm not against tab-completing functions, if people think that's
useful.  I am against tab-completing them in 1% of use-cases, which is
what this patch accomplishes.  The fact that it's short doesn't make it
good.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Benedikt Grundmann
Date:
Subject: Re: psql tab completion for SELECT
Next
From: Peter Geoghegan
Date:
Subject: Re: Progress on fast path sorting, btree index creation time