pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add %x to default PROMPT1 and PROMPT2 in psql
Date: Wed, 12 Feb 2020 04:34:08 +0000
Message-ID: <E1j1jiy-0005Gz-FC@gemulon.postgresql.org> (raw)

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



Message-ID: <E1j1jiy-0005Gz-FC@gemulon.postgresql.org>
Permalink:  ../E1j1jiy-0005Gz-FC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j1jiy-0005Gz-FC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add %x to default PROMPT1 and PROMPT2 in psql
  In-Reply-To: <E1j1jiy-0005Gz-FC@gemulon.postgresql.org>
  References: <E1j1jiy-0005Gz-FC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox