Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 273345E060F for ; Tue, 31 Jan 2012 05:57:59 -0400 (AST) Received: from mimolette.dalibo.net ([212.85.154.222]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RsATM-0005Gy-QM for pgsql-hackers@postgresql.org; Tue, 31 Jan 2012 09:58:00 +0000 Received: from [192.168.1.104] (AGrenoble-551-1-12-128.w92-133.abo.wanadoo.fr [92.133.243.128]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 3DB6028C6A8; Tue, 31 Jan 2012 10:57:43 +0100 (CET) Message-ID: <4F27BB16.4060501@dalibo.com> Date: Tue, 31 Jan 2012 10:57:42 +0100 From: Gilles Darold User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 MIME-Version: 1.0 To: Euler Taveira de Oliveira CC: pgsql-hackers@postgresql.org Subject: Re: Patch pg_is_in_backup() References: <4F26E291.9020605@dalibo.com> <4F27081D.2050000@timbira.com> In-Reply-To: <4F27081D.2050000@timbira.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/1721 X-Sequence-Number: 202308 Le 30/01/2012 22:14, Euler Taveira de Oliveira a =E9crit : > On 30-01-2012 15:33, Gilles Darold wrote: >> Yesterday I was facing a little issue with a backup software (NetBacku= p) >> that do not report error when a post backup script is run. The problem >> is that this script execute pg_stop_backup() and if there's any failur= e >> PostgreSQL keeps running in on-line backup mode. So the backup is not >> completed and the next one too because the call to pg_start_backup() >> will fail. > I use something similar to your pl/PgSQL version and was about to propo= se > something along these lines to core. +1 to include it. Please, add your= patch > to the next CF. Ok, it has been added to next CF under the "System administration" new topic I've just created. I'm not sure about that, so feel free to change it or let me know. Best regards, --=20 Gilles Darold http://dalibo.com - http://dalibo.org