about EDITOR_LINENUMBER_SWITCH - Mailing list pgsql-hackers

From Peter Eisentraut
Subject about EDITOR_LINENUMBER_SWITCH
Date
Msg-id 1306014476.32763.6.camel@vanquo.pezone.net
Whole thread Raw
Responses Re: about EDITOR_LINENUMBER_SWITCH  (Robert Haas <robertmhaas@gmail.com>)
Re: about EDITOR_LINENUMBER_SWITCH  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
I noticed the 9.1 release notes claim that the new
EDITOR_LINENUMBER_SWITCH thing is an environment variable, whereas it is
actually a psql variable.

This is perhaps sort of a Freudian slip.  Since the editor itself is
configured using an environment variable, shouldn't any configuration
about the editor also be an environment variable, so people can
configure them together?

Another thought is that this whole thing could be done away with if we
just allowed people to pass through arbitrary options to the editor,
like

\edit file.sql +50 -a -b -c

For powerusers, this could have interesting possibilities.




pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: minor patch submission: CREATE CAST ... AS EXPLICIT
Next
From: Alvaro Herrera
Date:
Subject: Re: proposal: enhanced get diagnostics statement