|
|
楼主 |
发表于 2022-1-13 14:39:09
|
显示全部楼层
postgres=# show max_wal_size;
+ c2 b) J! ]* y. Q1 T5 ?$ N max_wal_size " f. k* z* @' F* f7 `" O
--------------: D: |( g1 |# ]5 \
8GB
7 n3 Q) |& o, M(1 row)$ n/ H s& { D& j
3 d; ?1 Q, k0 ]3 P& s9 u5 f; X" A# D B
postgres=#
+ C% r& f7 n5 f! q2 z _7 s# n; h" j
) B5 f& B. U' G0 W[postgres@aqzhxxh-pg-1 pgdata]$ pg_ctl status
% }8 o( I6 T! d( I6 }" C* X+ e0 U& hpg_ctl: server is running (PID: 11857)5 a5 D2 q2 U4 Y7 _! B
/home/postgres/FlyingDB13/bin/postgres' ]2 c& [. h: l1 _. p$ L( Z
[postgres@aqzhxxh-pg-1 pgdata]$ psql
8 i9 _0 k/ `; v5 {$ {psql (13.3)* U( W0 m0 |% n. `# F$ U
Type "help" for help.
! x$ u# A* s h6 p& Y# \
% `# e1 N* g8 d; M# a% A( H) F/ V* Xpostgres=# show archive_command ;
4 P& q0 T1 ~! x9 _, s archive_command & s: v/ K- |$ N, R7 E J4 e' [
-----------------
4 r) R6 j$ E8 E2 e% c" E7 b+ E date
( b9 k# V; ?+ t# |7 K. N. F(1 row)$ P. K" l' h+ Q: ~7 X r% v
[postgres@aqzhxxh-pg-1 pgdata]$ psql
$ C' @0 [4 g- Ppsql (13.3)* _" w9 f, @; t% ~3 g/ i
Type "help" for help.7 H2 N, u/ C6 w( U4 e
* \: Y" y4 k8 i! b, Kpostgres=# show archive_command ;
( K4 m6 V( M' F0 s archive_command + E4 }! U' q, U$ i
-----------------
0 u( ?5 t: ?. }4 [! q date. [3 ^! F# n8 w9 q5 @8 {! z/ h
(1 row)
) m( y7 v8 v3 q$ A
, [7 I3 F4 F3 npostgres=# checkpoint ;
; {* P) f9 `+ gCHECKPOINT* Q8 l* _ V1 n8 ^3 b: n+ W
postgres=# select * from pg_stat_replication ;- ]* |1 u. o, c6 y4 W
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state | sent_lsn | write_lsn | f+ B, B, Q2 \* K; ^& y
lush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state | reply_time $ F- W/ N) F$ h0 d! \& R0 S
-----+----------+---------+------------------+-------------+-----------------+-------------+---------------+--------------+-------+----------+-----------+--
; v4 B4 M: d A9 e( ^---------+------------+-----------+-----------+------------+---------------+------------+------------
+ B+ \" D( `4 M+ ?: I(0 rows)/ q2 f$ i" [8 ~) l* b" J
p# `0 _8 B. e9 l+ E: G, O6 P* k$ }
postgres=# select pg_is_in_recovery();6 c, D: [& O2 a. q3 q# G' c
pg_is_in_recovery
+ P, G6 I; k" \) R-------------------
8 j9 q7 I# t7 z# A% P4 n# v f; Z. h4 d7 F/ {7 {0 S2 L* e
(1 row)
" }9 H# }; e9 k5 w) E6 w% f7 t- Q, N5 I( Z% ~8 U( m0 z8 q
postgres=# |
|