Improve BEGIN tab completion

Started by Andreas Karlssonover 10 years ago3 messageshackers
Jump to latest
#1Andreas Karlsson
andreas.karlsson@percona.com

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

Attachments:

begin-completion-v1.patchtext/x-patch; name=begin-completion-v1.patchDownload+24-7
#2Kevin Grittner
kgrittn@gmail.com
In reply to: Andreas Karlsson (#1)
Re: Improve BEGIN tab completion

On Wed, May 18, 2016 at 8:59 AM, Andreas Karlsson <andreas@proxel.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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Andreas Karlsson
andreas.karlsson@percona.com
In reply to: Kevin Grittner (#2)
Re: Improve BEGIN tab completion

On 09/01/2016 11:28 PM, Kevin Grittner wrote:

On Wed, May 18, 2016 at 8:59 AM, Andreas Karlsson <andreas@proxel.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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers