Re: replication lag despite corrective config

2018-11-20 Thread Wyatt Alt
may have arisen from IO contention between the query and WAL replay, rather than a query conflict. Also, check this out: https://www.alibabacloud.com/forum/read-383 Thanks, interesting reading. Am Mo., 19. Nov. 2018 um 21:46 Uhr schrieb Wyatt Alt mailto:wyatt@gmail.com>>:

Re: replication lag despite corrective config

2018-11-20 Thread Wyatt Alt
On 11/19/18 11:09 PM, Laurenz Albe wrote: With these settings, any conflicting query will be canceled after five minutes. Perhaps your actual settings are different. What do you get for SELECT * FROM pg_settings WHERE name = 'max_standby_streaming_delay'; Hi Laurenz, thanks for backing up

Re: replication lag despite corrective config

2018-11-19 Thread Wyatt Alt
on, are there causes of replication lag that max_standby_streaming_delay would not be expected to prevent, that would be resolved by killing long standby queries? If so, what's the best way to confirm? Wyatt On Mon, Nov 19, 2018 at 5:46 PM Wyatt Alt wrote: > I've been struggling to eliminate replic

replication lag despite corrective config

2018-11-19 Thread Wyatt Alt
I've been struggling to eliminate replication lag on a Postgres 9.6.6 instance on Amazon RDS. I believe the lag is caused by early cleanup conflicts from vacuums on the master, because I can reliably resolve it by killing long-running queries on the standby. I most recently saw ten hours of lag on