Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbw0H-0003Dx-Cd for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Oct 2014 18:30:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xbw0G-0003yl-T5 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Oct 2014 18:30:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xbr9z-00013m-MZ for pgsql-bugs@postgresql.org; Wed, 08 Oct 2014 13:20:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbr9u-00076u-US for pgsql-bugs@postgresql.org; Wed, 08 Oct 2014 13:20:05 +0000 MIME-Version: 1.0 Subject: BUG #11603: replication, pg_basebackup and high load To: pgsql-bugs@postgresql.org From: mdglange@gmail.com Date: Wed, 08 Oct 2014 13:19:27 +0000 Message-ID: <20141008131927.2563.36952@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 11603 Logged by: Michiel Email address: mdglange@gmail.com PostgreSQL version: 9.4beta2 Operating system: Linux Description: The test I did involved the following: a master database with two slaves. On the master two replication slots have been configured as per the documentation. One slave active before I put some "heavy" load (the environment is scaled such, that inserting a few gigabytes of insert statements is a heavy load. This is on purpose) During this load I started a pg_basebackup from the master, immediately followed (pg_basebackup && mv recovery.conf $PG_DATA/ && pg_ctl start) by placing the prepared recovery.conf and starting this slave. The pg_basebackup took a few hours (as expected) but starting this latter slave would not work because the WALs were no longer available. I'd expect to see that pg_basebackup restores up to the last WAL, so that regardless of the load and changes done on the (master) database replication picks up. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs