Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEJVT-0005Dn-ED for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 14:44:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XEJVS-0000cq-SS for pgsql-admin@arkaria.postgresql.org; Mon, 04 Aug 2014 14:44:58 +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 1XEJVR-0000ch-Pa for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 14:44:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEJVO-0001s1-Pj for pgsql-admin@postgresql.org; Mon, 04 Aug 2014 14:44:56 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s74EikXV027560; Mon, 4 Aug 2014 10:44:46 -0400 From: Tom Lane To: Simon Riggs cc: "Sofer, Yuval" , "pgsql-admin@postgresql.org" Subject: Re: set archive mode => on In-reply-to: References: <05d9187d37584aee9847d1bcb01cdb81@phx-exmbprd-02.adprod.bmc.com> Comments: In-reply-to Simon Riggs message dated "Mon, 04 Aug 2014 15:21:36 +0100" Date: Mon, 04 Aug 2014 08:44:52 -0600 Message-ID: <744.1407163492@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Simon Riggs writes: > On 4 August 2014 14:46, Sofer, Yuval wrote: >> Is there any way to turn archive mode to on, without restarting Postgres >> database server? > Sorry, not currently. > But it is something we've wanted to add for some time. The existing compromise on this is that archive_command is separate from archive_mode, and archive_command *can* be changed on the fly. So you can run with archive_mode on and set archive_command to a no-op (I think an empty string might work, read the docs), if you think you might want to activate archiving later without restarting. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin