Re: psql command line editor - Mailing list pgsql-general

From Jasen Betts
Subject Re: psql command line editor
Date
Msg-id h6duie$t9a$4@reversiblemaps.ath.cx
Whole thread Raw
In response to psql command line editor  (Bob Gobeille <bob.gobeille@hp.com>)
List pgsql-general
On 2009-08-17, Bob Gobeille <bob.gobeille@hp.com> wrote:
> I use PSQL to set my editor to vi.  This works as expected in psql, \e
> brings up vi and I edit away.
>
> Is there any way to set my psql command line editor to also use vi
> (just like I do with "set -o vi" in bash)?
> I can't find this in the docs.

psql command-line eritor is "readline" and being a GNU product
it defaults to emacs mode :)

do "man 3 realine" for more info
search for INPUTRC - less uses vi bindings :)

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: 2 versions of Postgres on the same machine
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: design, plpgsql and sql injection in dynamically generated sql