Skip to content

Commit a08caac

Browse files
authored
Merge pull request #111687 from rachel-msft/patch-18
Fix stat error
2 parents e30c58f + a5ba100 commit a08caac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/postgresql/concepts-read-replicas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ For additional insight, query the master server directly to get the replication
9393
In PostgreSQL version 10:
9494

9595
```SQL
96-
select pg_wal_lsn_diff(pg_current_wal_lsn(), stat.replay_lsn)
96+
select pg_wal_lsn_diff(pg_current_wal_lsn(), replay_lsn)
9797
AS total_log_delay_in_bytes from pg_stat_replication;
9898
```
9999

100100
In PostgreSQL version 9.6 and earlier:
101101

102102
```SQL
103-
select pg_xlog_location_diff(pg_current_xlog_location(), stat.replay_location)
103+
select pg_xlog_location_diff(pg_current_xlog_location(), replay_location)
104104
AS total_log_delay_in_bytes from pg_stat_replication;
105105
```
106106

0 commit comments

Comments
 (0)