postgresql/src/backend/utils
Tom Lane 568e709372 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
2010-08-12 00:40:59 +00:00
..
adt Extend psql's \e and \ef commands so that a line number can be specified, 2010-08-12 00:40:59 +00:00
cache Fix incorrect pathname in comment. 2010-08-06 03:46:23 +00:00
error Remove unnecessary "Not safe to send CSV data" complaint from elog.c's fallback 2010-07-18 23:43:32 +00:00
fmgr pgindent run for 9.0 2010-02-26 02:01:40 +00:00
hash pgindent run for 9.0 2010-02-26 02:01:40 +00:00
init pgindent run for 9.0, second run 2010-07-06 19:19:02 +00:00
mb Adjust mbutils.c so it won't get broken by future pgindent runs. 2010-07-07 15:13:21 +00:00
misc Add a comment about the initial default value of max_stack_depth. 2010-08-06 14:51:33 +00:00
mmgr Oops, in the previous fix to prevent a cursor that's being used in a FOR 2010-07-13 09:02:30 +00:00
resowner Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
sort pgindent run for 9.0 2010-02-26 02:01:40 +00:00
time pgindent run for 9.0 2010-02-26 02:01:40 +00:00
.cvsignore Cleanup to ensure good state of derived files in tarballs. 2000-06-09 02:38:36 +00:00
Gen_dummy_probes.sed Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
Gen_fmgrtab.pl Fix genbki.pl and Gen_fmgrtab.pl to use PID-specific temp file names, 2010-01-05 20:23:32 +00:00
Makefile Get rid of the need for manual maintenance of the initial contents of 2010-01-05 01:06:57 +00:00
probes.d Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00