Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXUBG-00048T-Te for pgsql-docs@arkaria.postgresql.org; Thu, 03 Sep 2015 13:03:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZXUBG-00005Z-AJ for pgsql-docs@arkaria.postgresql.org; Thu, 03 Sep 2015 13:03:54 +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 1ZXUBF-000054-L6; Thu, 03 Sep 2015 13:03:53 +0000 Received: from mail-io0-x233.google.com ([2607:f8b0:4001:c06::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZXUB9-0005r5-Di; Thu, 03 Sep 2015 13:03:52 +0000 Received: by iofb144 with SMTP id b144so57013896iof.1; Thu, 03 Sep 2015 06:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=FEwi7jJ/CXfyuSxOF9q7RNHElsKMnHa2YdEyrvDwK5Q=; b=hDDy4rnIttJSyZyyjnwIoVVEdXWcSnfRqycAfsENOmPoqFJ7SPasx8TGDH3aDqigAj SYgEJvYRHofzKa1cK2vvngVYmpFGW5XfHq1Y/inL5s+j4UBIcabMc7WzcO1nFR3VZ2nZ 1TOsL3iD69KJRKzJQFodvg8Dw/Hpe5QTzZjsooxgEqTtuRWLoivVfeEqo6v3+R1ghh24 WVEVWMZJ4PQpM5e4jyM6ZONoVHOxK+tZztnFbVHCQqo1d154Q7h33T99fitrQM2XHI5b vWj9k5ZX1w5d1d9aTn2rOc2tDFE6fUDRt7Z893sPP07l9A/+nmKa9hKpOGYnQU7ABJv9 znLw== MIME-Version: 1.0 X-Received: by 10.107.133.151 with SMTP id p23mr3754161ioi.71.1441285424371; Thu, 03 Sep 2015 06:03:44 -0700 (PDT) Received: by 10.79.116.135 with HTTP; Thu, 3 Sep 2015 06:03:44 -0700 (PDT) Date: Thu, 3 Sep 2015 22:03:44 +0900 Message-ID: Subject: Re: max_worker_processes on the standby From: Fujii Masao To: Robert Haas Cc: Alvaro Herrera , pgsql-docs , Pg Hackers , =?UTF-8?Q?Petr_Jel=C3=ADnek?= , Craig Ringer 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 Sat, Aug 8, 2015 at 11:02 PM, Robert Haas wrote: > On Tue, Aug 4, 2015 at 6:13 PM, Alvaro Herrera wrote: >>> I think it's totally reasonable for the standby to follow the master's >>> behavior rather than the config file. That should be documented, but >>> otherwise, no problem. If it were technologically possible for the >>> standby to follow the config file rather than the master in all cases, >>> that would be fine, too. But the current behavior is somewhere in the >>> middle, and that doesn't seem like a good plan. >> >> So I discussed this with Petr. He points out that if we make the >> standby follows the master, then the problem would be the misbehavior >> that results once the standby is promoted: at that point the standby >> would no longer "follow the master" and would start with the feature >> turned off, which could be disastrous (depending on what are you using >> the commit timestamps for). > > That seems like an imaginary problem. If it's critical to have commit > timestamps, don't turn them off on the standby. > >> To solve that problem, you could suggest that if we see the setting >> turned on in pg_control then we should follow that instead of the config >> file; but then the problem is that there's no way to turn the feature >> off. And things are real crazy by then. > > There's no existing precedent for a feature that lets the standby be > different from the master *in any way*. So I don't see why we should > start here. I think the reasonable definition is that the GUC > controls whether the master tries to update the SLRU (and generate > appropriate WAL records, presumably). The standby should not get a > choice about whether to replay those WAL records. +1 I added this to the 9.5 open item list. 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