-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue Synchronous WAL streaming state #1033
Comments
Can't really say much without other Postgres configuration options. Like what do you have |
mydb=# show synchronous_commit
|
PFB the postgresql settings as I am using pg_auto_failover: [postgres@testbed12 pgdatabase]$ cat postgresql-auto-failover.conf Settings by pg_auto_failovershared_preload_libraries = pg_stat_statements basic tuning computed by pg_auto_failovertrack_functions = pl |
In that last configuration shared, I don't see I don't know how pg_auto_failover works, so I can't comment on that |
And please use |
Yes Sure. show synchronous_standby_names; mydb=# select * from pg_stat_replication; |
Hi,
Currently I have to change the sync mode from async to sync but it not getting changed at the database level but at OS level barman process it showing the sync mode.
Is it a bug or am I doing a configuration wrong?
PFB the output:
mydb=# select * from pg_stat_replication;
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state | sent_lsn | write_ls
n | flush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state | reply_time
---------+----------+------------------+--------------------+--------------+-----------------+-------------+-------------------------------+--------------+-----------+------------+---------
---+------------+------------+-----------------+-----------------+-----------------+---------------+------------+-------------------------------
1323211 | 33644 | streaming_barman | barman_receive_wal | 10.114.16.34 | | 60170 | 2024-11-06 07:33:02.200294-05 | | streaming | 3/9C000148 | 3/9C0001
48 | 3/9C000148 | | 00:00:00.001916 | 00:00:00.001916 | 00:14:57.917293 | 0 | async | 2024-11-06 07:48:00.134036-05
(1 row)
mydb=# show synchronous_standby_names;
synchronous_standby_names
barman_receive_wal
(1 row)
[barman@testbed05 wals]$ ps -ef | grep barman_receive_wal
barman 1226060 1226053 0 07:33 ? 00:00:00 /usr/pgsql-16/bin/pg_receivewal --dbname=dbname=replication host=10.114.16.69 options=-cdatestyle=iso replication=true user=streaming_barman application_name=barman_receive_wal --verbose --no-loop --no-password --directory=/backup/barman/worker/streaming --slot=barman --synchronous
[barman@testbed05 wals]$ barman replication-status worker
Status of streaming clients for server 'worker':
Current LSN on master: 3/9C000060
Number of streaming clients: 1
Async WAL streamer
Application name: barman_receive_wal
Sync stage : 3/3 Remote write
Communication : TCP/IP
IP Address : 10.114.16.34 / Port: 60170 / Host: -
User name : streaming_barman
Current state : streaming (async)
Replication slot: barman
WAL sender PID : 1323211
Started at : 2024-11-06 07:33:02.200294-05:00
Sent LSN : 3/9C000060 (diff: 0 B)
Write LSN : 3/9C000060 (diff: 0 B)
Flush LSN : 3/9C000060 (diff: 0 B)
The text was updated successfully, but these errors were encountered: