Improve BEGIN tab completion

Lists: pgsql-hackers
From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Improve BEGIN tab completion
Date: 2016-05-18 13:59:57
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

I noticed that the tab completion was not aware of that TRANSACTION/WORK
is optional in BEGIN, and that we do not complete [NOT] DEFERRABLE.

While fixing it I also improved the completion support for SET SESSION
slightly.

Andreas

Attachment Content-Type Size
begin-completion-v1.patch text/x-patch 3.1 KB

From: Kevin Grittner <kgrittn(at)gmail(dot)com>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve BEGIN tab completion
Date: 2016-09-01 21:28:08
Message-ID: CACjxUsOVitS8sEZypZrZ3Kf_EaK9e0vR5FEVAoY1-8cZL-dxOA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, May 18, 2016 at 8:59 AM, Andreas Karlsson <andreas(at)proxel(dot)se> wrote:

> I noticed that the tab completion was not aware of that TRANSACTION/WORK is
> optional in BEGIN, and that we do not complete [NOT] DEFERRABLE.
>
> While fixing it I also improved the completion support for SET SESSION
> slightly.

Pushed, with an adjustment to handle SET TRANSACTION SNAPSHOT, too.

Thanks!

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Kevin Grittner <kgrittn(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve BEGIN tab completion
Date: 2016-09-02 11:18:46
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

On 09/01/2016 11:28 PM, Kevin Grittner wrote:
> On Wed, May 18, 2016 at 8:59 AM, Andreas Karlsson <andreas(at)proxel(dot)se> wrote:
>> I noticed that the tab completion was not aware of that TRANSACTION/WORK is
>> optional in BEGIN, and that we do not complete [NOT] DEFERRABLE.
>>
>> While fixing it I also improved the completion support for SET SESSION
>> slightly.
>
> Pushed, with an adjustment to handle SET TRANSACTION SNAPSHOT, too.

Thanks!

Andreas