Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zi5JP-0004S5-9z for pgsql-docs@arkaria.postgresql.org; Fri, 02 Oct 2015 18:44:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zi5JO-0005v9-If for pgsql-docs@arkaria.postgresql.org; Fri, 02 Oct 2015 18:44:06 +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 1Zi5J3-00053e-5w; Fri, 02 Oct 2015 18:43:45 +0000 Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zi5J0-0005JI-9E; Fri, 02 Oct 2015 18:43:44 +0000 Received: by labzv5 with SMTP id zv5so97774238lab.1; Fri, 02 Oct 2015 11:43:41 -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=rQsZuKDbX9NVzoiJMPe3H5jXO1/DwqvVKE9kNlwPJ50=; b=tQT5FP+RyvnF72uNYByFDoFtvjItup8bT9zO6aSjQZBVCvT9U009CRyAtcGzqUht1f iqllS3q3nr46Aya8yBgcMURNehk2OBANW4BRQpYZRudoD0922XqMJqIb2NAMIFisivQK 5Qt9BUPhQGgLQZ6Dy1pCUxwuqOtObYQZaLgcCYuRwS1P1O/Q1M3NFf0ZgOvUywx0OgWK xcAQJ+X5lBYUScatsZgbgY6EEoLDwnsHkDfzzhH1VMq6OD+ho/jBbkVt77PDhMKaMnUg FMThKAArfdZSyF7XOWZ+P49oRLJuF3LuiaUtQfvpuZ7MSAJSzRiQQ9l9SrLc7AX5sl7F siUQ== MIME-Version: 1.0 X-Received: by 10.112.13.136 with SMTP id h8mr6141690lbc.23.1443811421658; Fri, 02 Oct 2015 11:43:41 -0700 (PDT) Received: by 10.112.44.101 with HTTP; Fri, 2 Oct 2015 11:43:41 -0700 (PDT) In-Reply-To: <20151002145839.GZ2573@alvherre.pgsql> References: <20150930224806.GR2573@alvherre.pgsql> <20151001181240.GT2573@alvherre.pgsql> <20151002145839.GZ2573@alvherre.pgsql> Date: Fri, 2 Oct 2015 14:43:41 -0400 Message-ID: Subject: Re: max_worker_processes on the standby From: Robert Haas To: Alvaro Herrera Cc: Fujii Masao , oonishitk@nttdata.co.jp, pgsql-docs , PostgreSQL-development 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 Fri, Oct 2, 2015 at 10:58 AM, Alvaro Herrera wrote: > Fujii Masao wrote: > >> What happens if pg_xact_commit_timestamp() is called in standby after >> track_commit_timestamp is disabled in master, DeactivateCommitTs() is >> called and all commit_ts files are removed in standby? I tried that case >> and got the following assertion failure. > > Ah. So the standby needs to keep the module activated if it's enabled > locally, even when it receives a message that the master turned it off. > Here's a patch. The standby can have the feature enabled even though the master has it disabled? That seems like it can only lead to heartache. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs