Add psql PROMPT variable showing which line of a statement is being edited.
The new %l substitution shows the line number inside a (potentially
multi-line) statement starting from one.
Author: Sawada Masahiko, heavily editorialized by me.
Reviewed-By: Jeevan Chalke, Alvaro Herrera
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/51bb79569f934ad2135c2ff859c61b9ab8d51750
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 9 +++++++++
src/bin/psql/copy.c | 15 +++++++++------
src/bin/psql/mainloop.c | 23 +++++++++++++++++++++++
src/bin/psql/prompt.c | 5 +++++
src/bin/psql/settings.h | 1 +
5 files changed, 47 insertions(+), 6 deletions(-)