|From:||tgl(at)postgresql(dot)org (Tom Lane)|
|Subject:||pgsql: Extend psql's \e and \ef commands so that a line number can be|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Extend psql's \e and \ef commands so that a line number can be specified,
and the editor's cursor will be initially placed on that line. In \e the
lines are counted with respect to the query buffer, while in \ef they are
counted with line 1 = first line of function body. These choices are useful
for positioning the cursor on the line of a previously-reported error.
To avoid assumptions about what switch the user's editor takes for this
purpose, invent a new psql variable EDITOR_LINENUMBER_SWITCH with (at
present) no default value.
One incompatibility from previous behavior is that "\e 1234" will now
take "1234" as a line number not a file name. There are at least two
ways to select a numerically-named file if you really want to.
Pavel Stehule, reviewed by Jan Urbanski, with further editing by Robert Haas
and Tom Lane
psql-ref.sgml (r1.247 -> r1.248)
ruleutils.c (r1.330 -> r1.331)
command.c (r1.225 -> r1.226)
help.c (r1.160 -> r1.161)
|Next Message||Bruce Momjian||2010-08-12 02:03:58||pgsql: Back out syntax case changes --- seems they were intentional.|
|Previous Message||Thom Brown||2010-08-11 22:19:26||Re: pgsql: Properly lowercase identifiers, uppercase keywords, in doc|