We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e5a88 commit 9fb1c79Copy full SHA for 9fb1c79
psqlrc/psqlrc
@@ -48,6 +48,7 @@ with fs as (
48
select -- pg_backend_pid(), -- if we're connecting through pgbouncer, then prompt's %p is not real, so get real PID
49
50
pg_is_in_recovery(), -- primary or standby
51
+ current_schema(),
52
53
pg_postmaster_start_time()::timestamptz(0) as started_at,
54
pg_conf_load_time()::timestamptz(0) as loaded_at,
@@ -246,7 +247,7 @@ from coalesce(
246
247
\set PROMPT1 :PROMPT1' ':red'primary':reset
248
\endif
249
-\set PROMPT1 :PROMPT1' ':yellow'%n':cyan'@':orange'%`hostname`':cyan':':green'%>':blue'/%/'
250
+\set PROMPT1 :PROMPT1' ':yellow'%n':cyan'@':orange'%`hostname`':cyan':':green'%>':blue'/%/.':current_schema
251
\set PROMPT1 :PROMPT1'\n':reset'%x%# '
252
253
\set PROMPT2 ''
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments