Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoFiI-0008Il-6n for pgsql-admin@arkaria.postgresql.org; Tue, 20 Feb 2018 21:44:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoFiG-0004WA-Gf for pgsql-admin@arkaria.postgresql.org; Tue, 20 Feb 2018 21:44:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoFiG-0004W1-9Y for pgsql-admin@lists.postgresql.org; Tue, 20 Feb 2018 21:44:36 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoFiC-0008KT-Df for pgsql-admin@lists.postgresql.org; Tue, 20 Feb 2018 21:44:35 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A96A320DA4; Tue, 20 Feb 2018 16:44:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 20 Feb 2018 16:44:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Aw1Jix 1l8bOhxP9uC+t0MnwJEBTi9V4HSy+ht71xYS8=; b=MnyINJA9xTfqp9OAIuDjCg 7W64q1r+Sr3cfzYk0l9xVJ3B6ojAFrJmXIMwPULP0iKDajbw+YPh9hFgNkRjLZS+ amrJX3eMF/AJte2axRCGGpoPo8nOWYtMfajCNMq31BmAxLqk9FpKk/Yl9lUndqqA NmtAsuX8/zRBwBNq2W+RRtyMyS37Lo1XkukCLWA02Yry5NkTlBTGapPNWmrpjnaF 6XWm/l8V5sG3k3EkBxjIOhgQ3pFI422vQ4piAiKvwhIZUW9CNyRT+oFKJyGnJ2D+ hcO8+hqc3WJhEgHkTRUjxxLulLJd/g0ClQvFPVLK/mYabP8r2B7Lx3plCqo2VzGA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 466B924575; Tue, 20 Feb 2018 16:44:30 -0500 (EST) Subject: Re: PostgreSQL recovery file syntax, ver 8.4 vs ver 9.5 To: Telium Technical Support , pgsql-admin@lists.postgresql.org References: <000301d3aa8b$a70c17c0$f5244740$@telium.ca> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <0f2b60dc-b095-d04c-c242-b79fdcacd32b@2ndquadrant.com> Date: Tue, 20 Feb 2018 16:44:29 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <000301d3aa8b$a70c17c0$f5244740$@telium.ca> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/20/18 15:44, Telium Technical Support wrote: > In postgreSQL version 8.4 it seems that you can place the db server into > warm standby mode with the following setting in recovery.conf > >     restore_command = 'pg_standby archiveDir %f %p %r' > > In postgreSQL version 9.5 I see the same option, but I also see what > appears to be an alternative syntax in recovery.conf: > >    standby_mode = (boolean) >    trigger_file = (string) > > So is this new syntax an alternative to the old syntax (both are > accepted by PGSQL)? Any benefit to the new syntax? > > Does the new syntax mean that I can use the restore_command setting as > well (to use my own copy command)? A lot has changed between 8.4 and 9.5. Hot standby, streaming replication, replication slots, and so on. You can continue to use pg_standby, but the new facilities are better in many ways. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services