Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YgD2y-0006sl-VB for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Apr 2015 14:03:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YgD2y-0002RQ-6z for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Apr 2015 14:03:08 +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 1YgD2x-0002RF-Gr for pgsql-bugs@postgresql.org; Thu, 09 Apr 2015 14:03:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YgD2t-00014J-A0 for pgsql-bugs@postgresql.org; Thu, 09 Apr 2015 14:03:05 +0000 MIME-Version: 1.0 Subject: BUG #13010: After promote postgres try to send old timeline WALs to archive To: pgsql-bugs@postgresql.org From: eshkinkot@gmail.com Date: Thu, 09 Apr 2015 14:02:18 +0000 Message-ID: <20150409140218.26383.3403@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: 13010 Logged by: Sergey Burladyan Email address: eshkinkot@gmail.com PostgreSQL version: 9.2.10 Operating system: Slackware 14.1 Description: Hello, I have a problem with WAL archiving after promote. I do not use streaming, only WAL archive and after promote standby it try to archive WALs with old timeline, but I already have it in archive (from old master) and at new master WAL archiving stopped. pg_xlog from standby before promote: pg_xlog/ |-- 000000010000000000000014 |-- 000000010000000000000015 |-- 000000010000000000000016 |-- 000000010000000000000017 |-- 000000010000000000000018 |-- 000000010000000000000019 |-- 00000001000000000000001A |-- 00000001000000000000001B |-- 00000001000000000000001C |-- 00000001000000000000001D |-- 00000001000000000000001E |-- 00000001000000000000001F |-- 000000010000000000000020 |-- 000000010000000000000021 `-- archive_status |-- 000000010000000000000014.done |-- 000000010000000000000015.done |-- 000000010000000000000016.done |-- 000000010000000000000017.done |-- 000000010000000000000018.done |-- 000000010000000000000019.done |-- 00000001000000000000001A.done |-- 00000001000000000000001B.done |-- 00000001000000000000001C.done |-- 00000001000000000000001D.done |-- 00000001000000000000001E.done |-- 00000001000000000000001F.done |-- 000000010000000000000020.done `-- 000000010000000000000021.done pg_xlog from standby after promote it: pg_xlog/ |-- 000000010000000000000020 |-- 000000010000000000000021 |-- 000000010000000000000022 |-- 000000010000000000000023 |-- 000000010000000000000024 |-- 000000010000000000000025 |-- 000000010000000000000026 |-- 000000010000000000000027 |-- 00000002.history |-- 000000020000000000000024 |-- 000000020000000000000025 |-- 000000020000000000000026 |-- 000000020000000000000027 |-- 000000020000000000000028 |-- 000000020000000000000029 |-- 00000002000000000000002A |-- 00000002000000000000002B |-- 00000002000000000000002C `-- archive_status |-- 000000010000000000000020.done |-- 000000010000000000000021.done |-- 000000010000000000000022.done |-- 000000010000000000000023.done |-- 000000010000000000000024.done `-- 00000002.history.done pg_xlog later after promote: pg_xlog/ |-- 000000010000000000000025 |-- 000000010000000000000026 |-- 000000010000000000000027 |-- 00000002.history |-- 000000020000000000000028 |-- 000000020000000000000029 |-- 00000002000000000000002A |-- 00000002000000000000002B |-- 00000002000000000000002C |-- 00000002000000000000002D |-- 00000002000000000000002E |-- 00000002000000000000002F |-- 000000020000000000000030 |-- 000000020000000000000031 |-- 000000020000000000000032 |-- 000000020000000000000033 |-- 000000020000000000000034 `-- archive_status |-- 000000010000000000000025.ready |-- 000000010000000000000026.ready |-- 000000010000000000000027.ready |-- 00000002.history.done |-- 000000020000000000000028.done |-- 000000020000000000000029.done |-- 00000002000000000000002A.done |-- 00000002000000000000002B.done |-- 00000002000000000000002C.done `-- 00000002000000000000002D.ready now WAL archiving stopped with messages: 2015-04-08 20:49:31 MSK LOG: archive command failed with exit code 1 2015-04-08 20:49:31 MSK DETAIL: The failed archive command was: test ! -f ~/tmp/pg-slave-switch/w/000000010000000000000025 && cp pg_xlog/000000010000000000000025 ~/tmp/pg-slave-switch/w/000000010000000000000025 2015-04-08 20:49:32 MSK LOG: archive command failed with exit code 1 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs