psql autocompletion for \z and \dg

Started by Josh Kupershmidtover 15 years ago4 messageshackers
Jump to latest
#1Josh Kupershmidt
schmiddy@gmail.com

Hi all,

It looks like psql's tab completion for the \z and \dg commands in
psql are missing. I couldn't see a reason for this, so attached patch
fixes.

Also, this patch proposes to change psql's "\?" help text to say that
\dg and \du are the same, since AFAICT they do exactly the same thing.

Josh

Attachments:

psql_tab_completion.patchapplication/octet-stream; name=psql_tab_completion.patchDownload+8-4
#2Robert Haas
robertmhaas@gmail.com
In reply to: Josh Kupershmidt (#1)
Re: psql autocompletion for \z and \dg

On Wed, Oct 20, 2010 at 10:56 PM, Josh Kupershmidt <schmiddy@gmail.com> wrote:

It looks like psql's tab completion for the \z and \dg commands in
psql are missing. I couldn't see a reason for this, so attached patch
fixes.

Also, this patch proposes to change psql's "\?" help text to say that
\dg and \du are the same, since AFAICT they do exactly the same thing.

Please add this in the usual spot:
https://commitfest.postgresql.org/action/commitfest_view/open

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

#3Josh Kupershmidt
schmiddy@gmail.com
In reply to: Robert Haas (#2)
Re: psql autocompletion for \z and \dg

On Thu, Oct 21, 2010 at 8:45 PM, Robert Haas <robertmhaas@gmail.com> wrote:

Please add this in the usual spot:
https://commitfest.postgresql.org/action/commitfest_view/open

Aye sir, added.

#4Peter Eisentraut
peter_e@gmx.net
In reply to: Josh Kupershmidt (#1)
Re: psql autocompletion for \z and \dg

On ons, 2010-10-20 at 22:56 -0400, Josh Kupershmidt wrote:

It looks like psql's tab completion for the \z and \dg commands in
psql are missing. I couldn't see a reason for this, so attached patch
fixes.

Also, this patch proposes to change psql's "\?" help text to say that
\dg and \du are the same, since AFAICT they do exactly the same thing.

Committed with slight variations. I didn't think documenting \du as
"same as \dg" added much value, so I just made them both "list roles".