Re: Survey: renaming/removing script binaries (createdb, createuser...)

From: Kevin Hunter <hunteke(at)earlham(dot)edu>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Survey: renaming/removing script binaries (createdb, createuser...)
Date: 2008-03-26 17:24:16
Message-ID: 20080326132416.2d1d6219@mailer.earlham.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 11:04a -0400 on Wed, 26 Mar 2008, Ivan Sergio Borgonovo wrote:
> - maybe a pg[something] action may be better integrated with
> bash auto-completion without rewriting a sql parser

$ cat ~/.hypothetical_bashrc
...
complete -o default -F postgres_completion_function pg_cmd
...

$ pg_cmd<tab><tab>
CREATE ALTER VACUUM ...

$ pg_cmd create<tab><tab>
DATABASE LANGUAGE USER

Because it'd rely on a bash function installed somewhere in the
user's session, it'd be perhaps not as universal as an installed binary.
However, on a case-by-case basis, this can certainly work.

Kevin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2008-03-26 17:26:27 Re: Timezones in 8.2.7
Previous Message Joseph Shraibman 2008-03-26 17:19:40 Re: Timezones in 8.2.7