- 积分
- 9024
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2022-1-13 14:39:09
|
显示全部楼层
postgres=# show max_wal_size;7 W0 H# k" r8 x0 n+ {$ a: R
max_wal_size
d$ A% N$ f; B0 p- m5 T% W--------------
5 c$ A( z9 Y" D o/ ? 8GB: r. r: G# y B, Z# ?$ |- |
(1 row)
I& L! v5 @4 B- d& e% N/ F
8 C( I$ x# x! }$ O; S' k2 {postgres=# ' a3 E% {0 _* C2 g
5 s- Z4 R1 q4 W+ V, Q: ^1 c* c' N1 S# d' R) ]3 a. L
[postgres@aqzhxxh-pg-1 pgdata]$ pg_ctl status
- a9 ~5 A1 c) K4 H8 fpg_ctl: server is running (PID: 11857)7 U P, g- W& Q6 `# u9 }# r- d
/home/postgres/FlyingDB13/bin/postgres
, q: |3 J" |. c0 S2 u$ C$ `[postgres@aqzhxxh-pg-1 pgdata]$ psql6 B; p8 F# I- o8 V" K
psql (13.3)
- C' ^+ ]) m3 N& b- AType "help" for help.
5 y$ m) ?6 F0 d, y! f
5 B; R" y. o, f! O3 F! Spostgres=# show archive_command ;
5 S! M# h2 j5 A' t' [( e4 Y! F$ ?) D archive_command ! d9 a) a2 V( \1 k9 E5 Z4 \
-----------------
' ~( h! ^/ z7 O2 `3 X date
, Q, r0 l( w' \: ^" T# ^ e7 b(1 row), l( p. |+ K+ W) @
[postgres@aqzhxxh-pg-1 pgdata]$ psql
2 ?3 x; A6 S. e6 T! W4 k2 ^) Z8 f/ lpsql (13.3)
6 Z: {4 _+ b+ S" x1 TType "help" for help.3 m [2 H$ ` ?7 E9 p
7 w/ @# t$ w, s7 m' L7 wpostgres=# show archive_command ;6 m& \$ A% m9 Z% Z
archive_command 5 b" i8 }) t# f r
-----------------7 L3 l) P7 W( I5 F1 _
date
" |- Q" m# ]3 |3 s' R/ f(1 row)
! j0 U: Q9 v" [' ^) K% D* A7 C( a# X# h8 m
postgres=# checkpoint ;! V5 `& Q8 B7 n6 z# i- G( F* Z" E
CHECKPOINT) Q7 V, ~$ g( j S0 p
postgres=# select * from pg_stat_replication ;- a' t* G" f: I5 Z' x0 |$ ~. _' u! @
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state | sent_lsn | write_lsn | f# W8 o3 v' Q5 Q5 H0 n+ J
lush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state | reply_time
( O: g/ R4 |) P( L/ Q) e-----+----------+---------+------------------+-------------+-----------------+-------------+---------------+--------------+-------+----------+-----------+--
5 T. l: P% U& m---------+------------+-----------+-----------+------------+---------------+------------+------------; ]5 f7 v3 w6 G4 o1 W1 y8 i/ l
(0 rows)! ]9 ^- `) [/ X1 h" l
6 _* u7 z' I6 V6 S2 h: ]
postgres=# select pg_is_in_recovery();
! l8 M* F3 {! ^& a) V1 o pg_is_in_recovery
. u% J* X+ j5 u8 e4 y0 I9 g-------------------
# l# r9 f" H- v* h, |9 I, P f
6 N1 R4 @1 ~) Z; U# }* Z# @(1 row)1 h8 v: s ] e2 b8 I$ M
& ~7 f6 \ `, l0 ]/ Z8 T1 qpostgres=# |
|