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 14f16c9 commit c97495bCopy full SHA for c97495b
README.md
@@ -2504,11 +2504,12 @@ $ crontab -l
2504
### Как узнать отставание реплики?
2505
2506
Запускать на реплике:
2507
-
2508
```sql
2509
-select now() - pg_last_xact_replay_timestamp() as replication_lag_interval,
+select case when not pg_is_in_recovery() or pg_last_wal_receive_lsn() = pg_last_wal_replay_lsn() then '0'::interval
+ else now() - pg_last_xact_replay_timestamp()
2510
+ end as replication_lag_interval,
2511
current_setting('max_standby_archive_delay') as max_standby_archive_delay,
- current_setting('max_standby_streaming_delay') as max_standby_streaming_delay
2512
+ current_setting('max_standby_streaming_delay') as max_standby_streaming_delay;
2513
```
2514
2515
### Как узнать процент достижения своего максимального значения для последовательностей?
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments