psql tab completion: \c [ dbname [ username ] ]

From: Ian Barwick <ian(at)2ndquadrant(dot)com>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: psql tab completion: \c [ dbname [ username ] ]
Date: 2014-11-09 23:13:06
Message-ID: 545FF502.40201@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

Attached is a mighty trivial patch to extend psql tab completion
for \c / \connect to generate a list of role names, as lack thereof
was annoying me recently and I can't see any downside to doing
this.

The patch is a whole two lines so I haven't submitted it to the next
commitfest but will happily do so if appropriate.

Regards

Ian Barwick

--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
psql-slash-c-user.patch text/plain 675 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2014-11-10 00:09:16 Re: BRIN indexes - TRAP: BadArgument
Previous Message Petr Jelinek 2014-11-09 22:36:54 Re: Column/type dependency recording inconsistencies