]> granicus.if.org Git - postgresql/commit
Add psql PROMPT variable showing which line of a statement is being edited.
authorAndres Freund <andres@anarazel.de>
Tue, 2 Sep 2014 11:05:48 +0000 (13:05 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 2 Sep 2014 11:06:11 +0000 (13:06 +0200)
commit51bb79569f934ad2135c2ff859c61b9ab8d51750
tree3dc8d93438ee68238f1229ed16e37f4f5198ba3a
parentbd3b7a9eef6fd8d71ad9aa5eaf1f90e904e96f0b
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
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/copy.c
src/bin/psql/mainloop.c
src/bin/psql/prompt.c
src/bin/psql/settings.h