Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDYZT-0006l5-OE for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 10:28:55 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDYZP-0004X0-Qg for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 10:28:55 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDYZO-0001t9-Ci for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 10:28:51 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TDYZN-0005Id-Na for pgsql-bugs@postgresql.org; Mon, 17 Sep 2012 10:28:49 +0000 Date: Mon, 17 Sep 2012 10:28:49 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7546: Backups on hot standby cancelled despite hot_standby=on To: pgsql-bugs@postgresql.org From: stuart@stuartbishop.net X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/166 X-Sequence-Number: 34161 The following bug has been logged on the website: Bug reference: 7546 Logged by: Stuart Bishop Email address: stuart@stuartbishop.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=3Don' with other replication settin= gs 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. I can excercise this problem with the following script: #!/bin/sh dbname=3D"repl_test" master_port=3D5432 slave_port=3D5434 rows=3D2000000 slow=3D"pv --rate-limit 20k" createdb -p $master_port $dbname psql -p $master_port -d $dbname -f - < /dev/null) & sleep 5; psql -p $master_port -d $dbname -c "vacuum verbose BigStuff;"