pgsql: Add psql PROMPT variable showing which line of a statement is be

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add psql PROMPT variable showing which line of a statement is be
Date: 2014-09-02 11:18:52
Message-ID: E1XOm6u-0007UX-Jq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-09-02 11:26:30 pgsql: Silence warning on new versions of clang.
Previous Message Andres Freund 2014-09-02 11:11:46 Re: pgsql: Compress GIN posting lists, for smaller index size.