pgsql: Allow invisible PROMPT2 in psql.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow invisible PROMPT2 in psql.
Date: 2019-11-19 02:57:58
Message-ID: E1iWtiI-000543-6M@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Allow invisible PROMPT2 in psql.

Keep track of the visible width of PROMPT1, and provide %w as a way
for PROMPT2 to generate the same number of spaces.

Author: Thomas Munro, with ideas from others
Reviewed-by: Tom Lane (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKG%2BzGd7RigjWbxwhzGW59gUpf76ydQECeGdEdodH6nd__A%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7f338369ca624ca6c2e4f579623274c88d325bce

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 12 ++++++++++
src/bin/psql/prompt.c | 52 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-11-19 19:22:02 pgsql: Doc: clarify behavior of ALTER DEFAULT PRIVILEGES ... IN SCHEMA.
Previous Message Amit Kapila 2019-11-19 02:28:38 pgsql: Add logical_decoding_work_mem to limit ReorderBuffer memory usag