summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-02-12 13:31:14 +0900
committerMichael Paquier <michael@paquier.xyz>2020-02-12 13:31:14 +0900
commitdcdbb5a5db09064ac08ff3971c5031281ef2e545 (patch)
tree54a28b6847787f095704e72458ae91692a1c38ed /src
parent43e08419708a938236e76cd50de2db512e1c3a0c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/settings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h
index d2a9d4836ab..2b384a38a1b 100644
--- a/src/bin/psql/settings.h
+++ b/src/bin/psql/settings.h
@@ -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 ">> "
/*