Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7JOa-0006p7-4a for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Feb 2020 13:40:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7JOZ-0000Wx-0Y for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Feb 2020 13:40:07 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7JM8-00043v-1s for pgsql-hackers@lists.postgresql.org; Thu, 27 Feb 2020 13:37:36 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7JM0-0004TB-UD for pgsql-hackers@postgresql.org; Thu, 27 Feb 2020 13:37:35 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0248322053; Thu, 27 Feb 2020 08:37:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 27 Feb 2020 08:37:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=6Y3noLYL+qlDjNnx1THLGVtoKlCvuBmFzv6fy+GWm Z8=; b=DqxZVFQ74H7zj9P9sCzEpzbcgoz/OtG4kWg1EGq5xtz+DidqQJTWgsqnR lC5YPXJZljQ1RrGvPsfYlTH02RMQpxEKHMXgbqwJaQ//2qAFRIhZ4uDjez2oFvOs BHg1VryLgdpE+A+lWIj/CjnXJbtFd9Pd5G+1BMU/jU9+MUGYPpP0MDhGg4Nuj8x+ +i3v7xPl4EGzg7PGe8kRYUrbmSYTK6BUIEHRbh1QTR45vhBvNin0QsDTjaeBnb0V GDK/Q5a88fgXsm+Fpm8Uct0jHwws1q8LnyVd9COtqWMqBU8/XppWkr4KDki308D6 1SMA2lVLZbZ5g8Ey5FOfKAT7VfLRQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleeigdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdrtgho mhenucfkphepleefrddvgedvrdduleegrdduleeinecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedv nhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2c2c4.dip0.t-ipconnect.de [93.242.194.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D8F73060F09; Thu, 27 Feb 2020 08:37:25 -0500 (EST) Subject: Re: Improve handling of parameter differences in physical replication To: Fujii Masao , pgsql-hackers References: <4ad69a4c-cc9b-0dfe-0352-8b1b0cd36c7b@2ndquadrant.com> <27894a76-d498-f3fd-d77f-7c03140fbfe9@oss.nttdata.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 27 Feb 2020 14:37:24 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <27894a76-d498-f3fd-d77f-7c03140fbfe9@oss.nttdata.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-02-27 11:13, Fujii Masao wrote: >> Btw., I think the current setup is slightly buggy.  The MaxBackends value that is used to size shared memory is computed as MaxConnections + autovacuum_max_workers + 1 + max_worker_processes + max_wal_senders, but we don't track autovacuum_max_workers in WAL. > Maybe this is because autovacuum doesn't work during recovery? Autovacuum on the primary can use locks or xids, and so it's possible that the standby when processing WAL encounters more of those than it has locally allocated shared memory to handle. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services