Re: psql command line editor

From: Bob Gobeille <bob(dot)gobeille(at)hp(dot)com>
To: "Gobeille, Robert" <bob(dot)gobeille(at)hp(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql command line editor
Date: 2009-08-17 17:46:12
Message-ID: 5E72FC6A-3350-4187-958A-738327AB6105@hp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Aug 17, 2009, at 11:30 AM, Gobeille, Robert 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.

That should have been PSQL_EDITOR.

bob

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2009-08-17 17:50:39 Re: ERROR: attempted to delete invisible tuple
Previous Message Tom Lane 2009-08-17 17:43:47 Re: pg_autovacuum exceptions question