tab completion for alter extension - Mailing list pgsql-hackers

From Jeff Janes
Subject tab completion for alter extension
Date
Msg-id CAMkU=1z0gxEOLg2BWa69P4X4Ot8xBxipGUiGkXe_tC+raj79-Q@mail.gmail.com
Whole thread Raw
Responses Re: tab completion for alter extension
List pgsql-hackers
tab completion for "alter extension foobar update" yields a list of
tables.  That is actively misleading.  (This is not new in 9.6.)

It should complete to nothing, or "TO" followed by a list of available versions.

The attached patch takes approach 2.  I thought of adding a ";" to the
list completions to signify you can optionally end the command
immediately after UPDATE and have it be a complete command.  But I
thought perhaps that was too clever, and unprecedented.

Will add to commitfest-next

Cheers,

Jeff

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Some other things about contrib/bloom and generic_xlog.c
Next
From: Alexander Korotkov
Date:
Subject: Re: Move PinBuffer and UnpinBuffer to atomics