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 1f5f7f5 commit 0179cc4Copy full SHA for 0179cc4
psqlrc/psqlrc
@@ -49,6 +49,11 @@ select -- pg_backend_pid(), -- if we're connecting through pgbouncer, then promp
49
50
pg_is_in_recovery(), -- primary or standby
51
52
+ pg_postmaster_start_time()::timestamptz(0) as started_at,
53
+ pg_conf_load_time()::timestamptz(0) as loaded_at,
54
+ now()::timestamptz(0) - pg_postmaster_start_time()::timestamptz(0) as start_uptime,
55
+ now()::timestamptz(0) - pg_conf_load_time()::timestamptz(0) as load_uptime,
56
+
57
current_setting('server_version') as server_version,
58
current_setting('config_file') as config_file,
59
current_setting('hba_file') as hba_file,
@@ -121,6 +126,9 @@ from coalesce(
121
126
extract(epoch from r.lag) as e(epoch)
122
127
\gset
123
128
129
+\echo :white'Started at: ':started_at' (':start_uptime')':reset
130
+\echo :white'Loaded at: ':loaded_at' (':load_uptime')':reset
131
124
132
\if :is_config_file_error
125
133
\echo :red'Errors found in config file "':config_file'"':reset
134
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments