Add psql PROMPT variable showing which line of a statement is being edited.

Andres Freund <andres@anarazel.de>

Commit: 51bb79569f934ad2135c2ff859c61b9ab8d51750
Author: Andres Freund <andres@anarazel.de>
Date: 2014-09-02T11:06:11Z
Releases: 9.5.0
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

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +9 −0
src/bin/psql/copy.c modified +9 −6
src/bin/psql/mainloop.c modified +23 −0
src/bin/psql/prompt.c modified +5 −0
src/bin/psql/settings.h modified +1 −0