Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4F1EC64FCF2 for ; Fri, 5 Dec 2008 10:41:23 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 19426-06 for ; Fri, 5 Dec 2008 10:41:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 7300864FCD8 for ; Fri, 5 Dec 2008 10:41:17 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.2/8.14.2) with ESMTP id mB5EfGZP007310 for ; Fri, 5 Dec 2008 14:41:16 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.2/8.14.2/Submit) id mB5EfG1M007309; Fri, 5 Dec 2008 14:41:16 GMT (envelope-from www) Date: Fri, 5 Dec 2008 14:41:16 GMT Message-Id: <200812051441.mB5EfG1M007309@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #4566: pg_stop_backup() reports incorrect STOP WAL LOCATION From: "Randy Isbell" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/25 X-Sequence-Number: 21841 The following bug has been logged online: Bug reference: 4566 Logged by: Randy Isbell Email address: jisbell@cisco.com PostgreSQL version: 8.3.4 Operating system: FreeBSD 6.2 Description: pg_stop_backup() reports incorrect STOP WAL LOCATION Details: An inconsistency exists between the segment name reported by pg_stop_backup() and the actual WAL file name. SELECT pg_start_backup('filename'); pg_start_backup ----------------- 10/FE1E2BAC (1 row) Later: SELECT pg_stop_backup(); pg_stop_backup ---------------- 10/FF000000 (1 row) The resulting *.backup file: START WAL LOCATION: 10/FE1E2BAC (file 0000000200000010000000FE) STOP WAL LOCATION: 10/FF000000 (file 0000000200000010000000FF) CHECKPOINT LOCATION: 10/FE1E2BAC START TIME: 2008-11-09 01:15:06 CST LABEL: /bck/db/sn200811090115.tar.gz STOP TIME: 2008-11-09 01:15:48 CST In my 8.3.4 instance, WAL file naming occurs as: ... 0000000100000003000000FD 0000000100000003000000FE 000000010000000400000000 000000010000000400000001 ... WAL files never end in 'FF'. This causes a problem when trying to collect the ending WAL file for backup. - r.