Re: Tab completion for TABLESAMPLE

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>
To: Brendan Jurd <direvus(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tab completion for TABLESAMPLE
Date: 2015-06-19 11:04:59
Message-ID: 5583F75B.3020904@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2015-06-19 09:08, Brendan Jurd wrote:
> On Sun, 14 Jun 2015 at 20:44 Petr Jelinek <petr(at)2ndquadrant(dot)com
> <mailto:petr(at)2ndquadrant(dot)com>> wrote:
>
> looks like I omitted psql tab completion from the TABLESAMPLE patch. The
> attached patch adds it.
>
>
> Hi Petr,
>
> I'm doing an initial review of this patch.

Thanks

>
> With the patch applied, psql correctly offers a list of existing
> tablesample methods for completion whenever the previous word is
> 'TABLESAMPLE'. I did notice that the syntax of the TABLESAMPLE clause
> requires brackets after the method name, but the tab completion does not
> complete the opening bracket. Whereas, say, ALTER FUNCTION does. I
> think it would be convenient and user-friendly to complete the opening
> bracket -- it would make it perfectly clear that an argument is required
> for the syntax to be valid.
>

Agreed, here is updated version which does that.

--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
psql-complete-tablesample-v2.patch text/x-patch 1.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-06-19 12:18:51 Re: pg_rewind failure by file deletion in source server
Previous Message Michael Paquier 2015-06-19 10:24:03 Re: The real reason why TAP testing isn't ready for prime time