mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -23,8 +23,8 @@
|
||||
#define DEFAULT_EDITOR_LINENUMBER_ARG "+"
|
||||
#endif
|
||||
|
||||
#define DEFAULT_PROMPT1 "%/%R%# "
|
||||
#define DEFAULT_PROMPT2 "%/%R%# "
|
||||
#define DEFAULT_PROMPT1 "%/%R%x%# "
|
||||
#define DEFAULT_PROMPT2 "%/%R%x%# "
|
||||
#define DEFAULT_PROMPT3 ">> "
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user