Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xm8LF-0003xh-DX for pgsql-docs@arkaria.postgresql.org; Wed, 05 Nov 2014 21:42:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xm8LD-0005WX-Ts for pgsql-docs@arkaria.postgresql.org; Wed, 05 Nov 2014 21:42:11 +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 1Xm8LD-0005WR-A8 for pgsql-docs@postgresql.org; Wed, 05 Nov 2014 21:42:11 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xm8L8-0001an-Gf for pgsql-docs@postgresql.org; Wed, 05 Nov 2014 21:42:10 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M2t0Q-1Y4Dgg1yzO-00sdgG for ; Wed, 05 Nov 2014 22:42:04 +0100 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id 4057720BF9 for ; Wed, 5 Nov 2014 16:42:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 05 Nov 2014 16:42:03 -0500 X-Sasl-enc: er8lJCEJugy66UlKTr2SoiL2AvEu8vD1L/RlryUls895 1415223723 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 119C0680101 for ; Wed, 5 Nov 2014 16:42:03 -0500 (EST) Message-ID: <545A99AA.5020107@gmx.net> Date: Wed, 05 Nov 2014 16:42:02 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: pgsql-docs Subject: Re: obsolete pg_receivexlog note? References: <54454F47.50407@gmx.net> In-Reply-To: <54454F47.50407@gmx.net> Content-Type: multipart/mixed; boundary="------------070504050403070009030104" X-Provags-ID: V03:K0:cJ+xCKXSGptCIcznReK0V07oSYoASmMTB348ZsDnB9y2/sZs/TP GjBUWQZvVKgoPAc4uUHH7+e2CY1LUkv2KeXotidgKrwyS7XlIsfQO8sP57i6jCd7UWrkGPL mwjjyrYiHMbIT1hS5DKw72h3QJpWw/r2mztJ/hCo4pxb4YLaJff0bNNh375UN4tgnJr6WoV M8i4T9WXSYpeOkMtmzTKg== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------070504050403070009030104 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 10/20/14 2:07 PM, Peter Eisentraut wrote: > The reference page for pg_receivexlog > (http://www.postgresql.org/docs/9.4/static/app-pgreceivexlog.html) has > this note: > > """ > When using pg_receivexlog instead of archive_command, the server will > continue to recycle transaction log files even if the backups are not > properly archived, since there is no command that fails. This can be > worked around by having an archive_command that fails when the file has > not been properly archived yet, for example: > > archive_command = 'sleep 5 && test -f /mnt/server/archivedir/%f' > The initial timeout is necessary because pg_receivexlog works using > asynchronous replication and can therefore be slightly behind the master. > """ > > ISTM that this should be replaced with something to the effect of, if > you are using pg_receivexlog instead of archive_command, you had better > use slots. Here is a patch. --------------070504050403070009030104 Content-Type: application/x-patch; name="pg-receivexlog-notes.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pg-receivexlog-notes.patch" ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvc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CB0aW1l b3V0IGlzIG5lY2Vzc2FyeSBiZWNhdXNlCi0gICA8YXBwbGljYXRpb24+cGdf cmVjZWl2ZXhsb2c8L2FwcGxpY2F0aW9uPiB3b3JrcyB1c2luZyBhc3luY2hy b25vdXMKLSAgIHJlcGxpY2F0aW9uIGFuZCBjYW4gdGhlcmVmb3JlIGJlIHNs aWdodGx5IGJlaGluZCB0aGUgbWFzdGVyLgorICAgPHhyZWYgbGlua2VuZD0i Z3VjLWFyY2hpdmUtY29tbWFuZCI+IGFzIHRoZSBtYWluIFdBTCBiYWNrdXAg bWV0aG9kLCBpdCBpcworICAgc3Ryb25nbHkgcmVjb21tZW5kZWQgdG8gdXNl IHJlcGxpY2F0aW9uIHNsb3RzLiAgT3RoZXJ3aXNlLCB0aGUgc2VydmVyIGlz CisgICBmcmVlIHRvIHJlY3ljbGUgb3IgcmVtb3ZlIHRyYW5zYWN0aW9uIGxv ZyBmaWxlcyBiZWZvcmUgdGhleSBhcmUgYmFja2VkIHVwLAorICAgYmVjYXVz ZSBpdCBkb2VzIG5vdCBoYXZlIGFueSBpbmZvcm1hdGlvbiwgZWl0aGVyCisg ICBmcm9tIDx4cmVmIGxpbmtlbmQ9Imd1Yy1hcmNoaXZlLWNvbW1hbmQiPiBv ciB0aGUgcmVwbGljYXRpb24gc2xvdHMsIGFib3V0CisgICBob3cgZmFyIHRo ZSBXQUwgc3RyZWFtIGhhcyBiZWVuIGFyY2hpdmVkLgogICA8L3BhcmE+CiAK ICA8L3JlZnNlY3QxPgo= --------------070504050403070009030104 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------070504050403070009030104--