Re: Standby reads fail when autovacuum take AEL during truncation

2018-09-10 Thread Adrien NAYRAT
On 9/7/18 7:36 PM, Alexander Korotkov wrote: Please, take a look at following threads: 1.https://www.postgresql.org/message-id/c9374921e50a5e8fb1ecf04eb8c6ebc3%40postgrespro.ru 2.https://www.postgresql.org/message-id/CAHGQGwE5UqFqSq1%3DkV3QtTUtXphTdyHA-8rAj4A%3DY%2Be4kyp3BQ%40mail.gmail.com Tha

Re: Standby reads fail when autovacuum take AEL during truncation

2018-09-07 Thread Alexander Korotkov
Hi! On Fri, Sep 7, 2018 at 3:17 PM Adrien NAYRAT wrote: > I was faced on $SUBJECT on an heavily updated table and the same table > heavily accessed on standby server. > > I notice autovacuum try to take an AEL in lazy_truncate_heap(). On > primary we try during VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

Standby reads fail when autovacuum take AEL during truncation

2018-09-07 Thread Adrien NAYRAT
Hello hackers, I was faced on $SUBJECT on an heavily updated table and the same table heavily accessed on standby server. I notice autovacuum try to take an AEL in lazy_truncate_heap(). On primary we try during VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL (50ms) and we failed after several attempts.