From: | Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com> |
---|---|
To: | Viswanath <M(dot)Viswanath16(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Update or Delete causes canceling of long running slave queries |
Date: | 2016-05-12 16:54:24 |
Message-ID: | CADp-Sm7rqN_EdfkJkqh+xk5g_NKnrZ_Ci+UogR6yU42K859u4w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 12 May 2016 21:56 Viswanath, <M(dot)Viswanath16(at)gmail(dot)com> wrote:
> Hi,
> I have the following configurations.
>
> On master:
> autovacuum=off
>
Have you changed it recently or it has always been off? In case you changed
it recently, a restart would be needed for this setting to take effect.
vacuum_defer_cleanup_age=0
>
> On slave:
> hot_standby_feedback = off
> max_standby_streaming_delay = 30s
>
> Now when I try to run a long query on slave and do some update or delete on
> the table on master I am getting the following error.
>
> ERROR: canceling statement due to conflict with recovery
> DETAIL: User query might have needed to see row versions that must be
> removed.
>
> The error code was : 40001
>
> I am not running vacuum manually and autovacuum is 'off'
> What could possibly causing the conflict?
>
Please share mode details like version and standby DB conf etc.
>
>
> --
> View this message in context:
> http://postgresql.nabble.com/Update-or-Delete-causes-canceling-of-long-running-slave-queries-tp5903250.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
--
Best Regards
Sameer Kumar | DB Solution Architect
*ASHNIK PTE. LTD.*
101 Cecil Street, #11-11 Tong Eng Building, Singapore 069 533
T: +65 6438 3504 | M: +65 8110 0350 | www.ashnik.com
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2016-05-12 17:10:59 | Re: Update or Delete causes canceling of long running slave queries |
Previous Message | db042190 | 2016-05-12 16:30:41 | downloaded 9.1 pg driver but odbcad32 doesnt see it |