Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZMU2r-0007WF-AS for pgsql-docs@arkaria.postgresql.org; Tue, 04 Aug 2015 04:41:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZMU2q-0002Bz-GA for pgsql-docs@arkaria.postgresql.org; Tue, 04 Aug 2015 04:41:44 +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) (envelope-from ) id 1ZMU2p-0002BW-Le for pgsql-docs@postgresql.org; Tue, 04 Aug 2015 04:41:43 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZMU2g-000161-9J for pgsql-docs@postgresql.org; Tue, 04 Aug 2015 04:41:42 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.80.133]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 65E55400803; Mon, 3 Aug 2015 21:41:28 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 2497D751; Tue, 4 Aug 2015 01:41:26 -0300 (CLT) Date: Tue, 4 Aug 2015 01:41:26 -0300 From: Alvaro Herrera To: Robert Haas Cc: Fujii Masao , pgsql-docs Subject: Re: max_worker_processes on the standby Message-ID: <20150804044126.GO2441@postgresql.org> References: <20150715085751.GD2301@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 Robert Haas wrote: > On Thu, Jul 16, 2015 at 12:07 AM, Fujii Masao wrote: > > One example which makes me a bit confusing is; both master and > > standby are running fine with track_commit_timestamp disabled, > > then I enable it only on the master. That is, the value of > > track_commit_timestamp is not the same between master and standby. > > No error happens in this case. According to the code of xlog_redo(), > > the commit timestamp tracking mechanism is activated in this case. Well. We could have the standby fail (i.e. stop replication) when it receives the WAL record indicating that the master turned it on. But that would be very unfriendly, so we chose to make it follow the master config instead. We're okay with this part, yes? > > However, after that, if standby is restarted, standby emits an error > > because the value of track_commit_timestamp is not the same between > > master and standby. Simple question is; why do we need to cause > > the standby fail in this case? Since I'm not familiar with the code of > > track_commit_timestamp yet, I'm not sure whether this behavior is > > valid or not. > > Hmm, that seems like awfully weird behavior. The alternative is to turn the feature on automatically if it sees that the master also has it on, i.e. the value would not be what the config file says it is. Doing this would be a bit surprising IMO, but given the behavior above maybe it's better than the current behavior. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs