Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXUeL-0005n2-J5 for pgsql-docs@arkaria.postgresql.org; Thu, 03 Sep 2015 13:33:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZXUeL-00071H-4L for pgsql-docs@arkaria.postgresql.org; Thu, 03 Sep 2015 13:33:57 +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 1ZXUe0-0006dc-70 for pgsql-docs@postgresql.org; Thu, 03 Sep 2015 13:33:36 +0000 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZXUdw-0006Rt-Vk for pgsql-docs@postgresql.org; Thu, 03 Sep 2015 13:33:35 +0000 Received: by ioii196 with SMTP id i196so57706949ioi.3 for ; Thu, 03 Sep 2015 06:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=haq1kQ/Db8wPL1W6e6VkcMRQ7VVe/7Gtnghdwk+7Suc=; b=jZmSO61rMUQmV/+6nNz/OgPwWTocRQbX+z5ehJez03q2HY7AYypx0S56/Oa5cmyJKd r1g63st9uOIZcSG93bBlpTUjdb82ibz+3YNyRndsVCteW3vuWuQaHBfo2IxMZTmdHb2+ honk+XSifYdXmkXDij/TwG7rsSX1uzh68JZV9EIqSHOyNsyd7Ihp6NSXUaOGIN/uF6as Nz5mQF0Vc7+KLH6qWAnlxAkCaSRuMTD66EoZFUrIdC5ZHzNfYMZIQi3zLmKZCcnC4D3o EWbrufk4/CSroCYPywNVl2lQHEicHBdj59c71CuRv4G135BUbIclCM/w8DNCP/Ppjewf NZQA== MIME-Version: 1.0 X-Received: by 10.107.133.151 with SMTP id p23mr4053523ioi.71.1441287210453; Thu, 03 Sep 2015 06:33:30 -0700 (PDT) Received: by 10.79.116.135 with HTTP; Thu, 3 Sep 2015 06:33:30 -0700 (PDT) In-Reply-To: References: <20150715085751.GD2301@postgresql.org> Date: Thu, 3 Sep 2015 22:33:30 +0900 Message-ID: Subject: Re: max_worker_processes on the standby From: Fujii Masao To: Alvaro Herrera Cc: pgsql-docs Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 On Thu, Jul 16, 2015 at 1:07 PM, Fujii Masao wrote: > On Wed, Jul 15, 2015 at 5:57 PM, Alvaro Herrera > wrote: >> Fujii Masao wrote: >>> Hi, >>> >>> "25.5.3. Administrator's Overview" in the document >>> ----------------------------------------------------- >>> The setting of some parameters on the standby will need reconfiguration >>> if they have been changed on the primary. For these parameters, >>> the value on the standby must be equal to or greater than the value >>> on the primary. If these parameters are not set high enough then >>> the standby will refuse to start. Higher values can then be supplied >>> and the server restarted to begin recovery again. These parameters are: >>> max_connections >>> max_prepared_transactions >>> max_locks_per_transaction >>> ----------------------------------------------------- >>> >>> I found that the value of max_worker_processes on the standby also >>> must be equal to or greater than the value on the master. So we should >>> just add max_worker_processes to this paragraph. Patch attached. >> >> True. Also track_commit_timestamp. > > Yes, but I intentionally did not include track_commit_timestamp in > the patch because it's not easy for me to document the hot standby > condition of track_commit_timestamp unless I read the code more. > > 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. > 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. > >> Can you add a comment somewhere in >> CheckRequiredParameterValues(void) that the set of parameters is listed >> in section such-and-such in the docs, so that next time there's a higher >> chance that the docs are kept up to date? > > +1 > > What about the attached patch? Applied the patch. Regards, -- Fujii Masao -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs