Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJ6TT-0000dD-IO for pgsql-docs@arkaria.postgresql.org; Sun, 17 Aug 2014 19:50:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJ6TT-0002hW-2i for pgsql-docs@arkaria.postgresql.org; Sun, 17 Aug 2014 19:50:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJ6TS-0002hQ-9n for pgsql-docs@postgresql.org; Sun, 17 Aug 2014 19:50:42 +0000 Received: from nm3-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.225]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJ6TJ-0001ui-FL for pgsql-docs@postgresql.org; Sun, 17 Aug 2014 19:50:40 +0000 Received: from [98.138.226.177] by nm3.bullet.mail.ne1.yahoo.com with NNFMP; 17 Aug 2014 19:50:31 -0000 Received: from [98.138.89.170] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 17 Aug 2014 19:50:31 -0000 Received: from [127.0.0.1] by omp1026.mail.ne1.yahoo.com with NNFMP; 17 Aug 2014 19:50:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 157447.1760.bm@omp1026.mail.ne1.yahoo.com Received: (qmail 26035 invoked by uid 60001); 17 Aug 2014 19:50:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1408305031; bh=eLZI70Klcrf4/HeXz1MhobSDyJK1yWuaAIYllJMSIo4=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5U1Uavw9h8p2qUF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pbmcgV0FMIGZpbGUgYXJjaGl2aW5nIC0tIEknbSBub3QgcHV0dGluZyBkb3duCj4.IHN0cmVhbWluZyByZXBsaWNhdGlvbi7CoCBPZiBjb3Vyc2UsIHdoYXQgSSB3b3VsZCBoYXZlICpyZWFsbHkqIGxpa2VkCj4.IGlzIGEgV0FMIHJlY2VpdmVyIHQBMAEBAQE- X-Mailer: YahooMailWebService/0.8.201.700 References: <53E5603B.5040102@agliodbs.com> <1407777686.41146.YahooMailNeo@web122306.mail.ne1.yahoo.com> <0F73426A2EA544878BCAC33BB989D671@maumau> <53EBCCEA.3090604@gmx.net> <1407965034.12878.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: <1408305030.43830.YahooMailNeo@web122304.mail.ne1.yahoo.com> Date: Sun, 17 Aug 2014 12:50:30 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Sample archive_command is still problematic To: Magnus Hagander Cc: Peter Eisentraut , MauMau , Josh Berkus , "pgsql-docs@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) 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 Magnus Hagander wrote: > On Wed, Aug 13, 2014 at 11:23 PM, Kevin Grittner wrot= e: > >> The above is regarding WAL file archiving -- I'm not putting down >> streaming replication.=A0 Of course, what I would have *really* liked >> is a WAL receiver that could write out normal-looking WAL files for >> archiving purposes and pass through the WAL stream to a hot >> standby.=A0 Last I checked (which was admittedly at least a couple >> years back) there was no such utility, although I seem to remember >> that Magnus had done some work that looked like it could be bent to >> that end. > > I did. But I think that has mostly been superceded by replication > slots now. As in, if you use pg_receivexlog with a specific > replication slot, I believe you no longer need archive command at all, > do you? Since the replication slot will block rotation of the WAL > files until they are actually archived by pg_receivexlog (What my > command did was have an archive command that looked back into > pg_stat_replication to see if pg_receivexlog had received the data or > not). > > It did not pass through any WAL stream though - you'd have your > standby connect directly to the same master that pg_receivexlog > connects to. What would be the actual reason for having that one do > the passthrough itself? The use case was to maintain both a hot standby and a set of WAL files to allow PITR recovery (e.g., to recover to just before some catastrophic SQL command was executed) to a remote site across a *slow* WAN connection.=A0 Rather than send the WAL across the slow connection twice they would ship and apply WAL files and suffer the consequent replication delay to the hot standby; but if the standby could be done through streaming replication and the WAL files could still be re-created off of the same stream, that would be better. Basically, where bandwidth is limited and expensive, you don't want to have to send the same WAL data over the same connection more than once. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs