Add psql PROMPT variable showing which line of a statement is being edited.
Andres Freund <andres@anarazel.de>
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
| Path | Change | +/− |
|---|---|---|
| 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 |