From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | stuart(at)stuartbishop(dot)net |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #7546: Backups on hot standby cancelled despite hot_standby=on |
Date: | 2012-09-18 22:45:43 |
Message-ID: | CAHGQGwGGNnQtL4yDdRaU12e8NO9vdAJcWByDZGoAmMQawaOjhg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Mon, Sep 17, 2012 at 7:28 PM, <stuart(at)stuartbishop(dot)net> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7546
> Logged by: Stuart Bishop
> Email address: stuart(at)stuartbishop(dot)net
> PostgreSQL version: 9.1.5
> Operating system: Ubuntu 12.10
> Description:
>
> I have a primary and a hot standby using streaming replication. The hot
> standby specifies 'hot_standby_feedback=on' with other replication settings
> set to default.
>
> If a vacuum occurs on the primary while pg_dump is dumping a large table,
> the pg_dump is cancelled, usually with the following error:
>
> ERROR: canceling statement due to conflict with recovery
> DETAIL: User was holding shared buffer pin for too long.
Maybe I'm missing something, but ISTM that hot_standby_feedback doesn't
eliminate the query cancels caused by buffer pin lock which you encountered.
It eliminates only the query cancels caused by cleanup of rows. So you might
need to set max_standby_streaming_delay to -1, to avoid query cancels.
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Toews | 2012-09-19 00:14:33 | Mixed newlines in Windows installer files |
Previous Message | Freddie Burgess | 2012-09-18 19:46:01 | Re: Postgres JDBC-hibernate Problem |