From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Vik Fearing <vik(at)2ndquadrant(dot)fr>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Tab completion for CREATE SEQUENCE |
Date: | 2015-06-19 06:41:19 |
Message-ID: | CADxJZo0cnwYd2sEeHx1ogQ3XqwwnwJU_WJ2+N_W5Qkxu=a3baQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 16 Jun 2015 at 00:52 Vik Fearing <vik(at)2ndquadrant(dot)fr> wrote:
> While reviewing the seqam patches, I noticed that psql has tab
> completion for ALTER SEQUENCE, but not for CREATE SEQUENCE.
>
> The attached trivial patch fixes that.
>
Hi Vik,
I'm doing an initial review of this patch.
It applies cleanly, although for some reason the patch seems to introduce
carriage returns in the line endings. `patch` warned about those and then
very sensibly ignored them. Everything compiled fine after applying.
The new code's style is not quite in accordance with the surrounds. I
think that the comments introducing each section should be de-indented to
the first column.
"RESTART", "SET SCHEMA", "OWNER TO", and "RENAME TO" are not valid
completions for CREATE SEQUENCE. It looks like these have been blindly
copy-pasted from ALTER SEQUENCE. Likewise, the valid completion "START
[WITH]" is missing.
"CREATE TEMP[ORARY] SEQUENCE" is not supported, and I think it probably
should be. I think that the patch could be improved with support for the
TEMP form fairly easily.
Apart from the above points, the new completions worked as advertised.
Docs: none needed.
Tests: we don't currently have any test coverage for psql tab completion.
I'm marking this "Waiting on Author". Once the problems have been
corrected, it should be ready for a committer.
Cheers,
BJ
From | Date | Subject | |
---|---|---|---|
Next Message | Brendan Jurd | 2015-06-19 07:08:50 | Re: Tab completion for TABLESAMPLE |
Previous Message | Michael Paquier | 2015-06-19 06:33:12 | pg_regress not waiting for postmaster to stop |