简体   繁体   中英

Find postgresql replica server

I see the message in PostgreSQL logs

2020-12-20 19:34:41 MSK [10090-1] replication@[unknown] ERROR: requested WAL segment 000000010000035D00000094 has already been removed

My current wal files name like 00000001000005E4000000B0

Is there any way to find out the client ip for this wal request?

I suppose some test or developer server was switched off for a long time and now it is on. I have too many connections to check them all manually.

Yes. Add %h to the log_line_prefix parameter, and the IP address will be logged along with the error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM