Add %x to default PROMPT1 and PROMPT2 in psql
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/logicaldecoding.sgml | modified | +3 −3 |
| doc/src/sgml/ref/psql-ref.sgml | modified | +1 −1 |
| src/bin/psql/settings.h | modified | +2 −2 |
Documentation touched
Discussion
- Add %x to PROMPT1 and PROMPT2 23 messages · 2020-01-26 → 2020-02-12