pgsql: Add %x to default PROMPT1 and PROMPT2 in psql

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add %x to default PROMPT1 and PROMPT2 in psql
Date: 2020-02-12 04:34:08
Message-ID: E1j1jiy-0005Gz-FC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add %x to default PROMPT1 and PROMPT2 in psql

%d can be used to track if the current connection is in a transaction
block or not, and adding it by default to the prompt has the advantage
to not need a modification of .psqlrc, something not possible depending
on the environment.

This discussion has happened across various sources, and there was a
strong consensus in favor of this change.

Author: Vik Fearing
Reviewed-by: Fabien Coelho
Discussion: https://postgr.es/m/09502c40-cfe1-bb29-10f9-4b3fa7b2bbb2@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dcdbb5a5db09064ac08ff3971c5031281ef2e545

Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml | 6 +++---
doc/src/sgml/ref/psql-ref.sgml | 2 +-
src/bin/psql/settings.h | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-02-12 05:07:17 Re: pgsql: Test additional speculative conflict scenarios.
Previous Message Andres Freund 2020-02-12 00:43:09 pgsql: Test additional speculative conflict scenarios.