Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxG3T-00069Y-2q for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Dec 2021 22:13:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxG3S-0003IM-05 for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Dec 2021 22:13:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxG3R-0003IA-M7 for pgsql-hackers@lists.postgresql.org; Tue, 14 Dec 2021 22:13:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxG3O-0002jJ-MY for pgsql-hackers@postgresql.org; Tue, 14 Dec 2021 22:13:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 362655C0535; Tue, 14 Dec 2021 17:13:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 14 Dec 2021 17:13:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=0E+R1MYhOHKqgOQRzXIv3+ddNrKeVudPEwsJAH4LH +Y=; b=XIPLtPgV/X/W0kE+G/4SGjRkUk1mS7RQv3qiOZGpEVag/EUK2d0O806KH k033Ge7lfN57PU7fg8Rf1p5B0476gxa2MorCUN6Ih47/NefG8hE0+RuvgMtL7Yg2 z0v6Fv6nGwQAW3kUI3l3v+5LYYshSzrZEC3iBqTiB2dMc0PxNCbhC6WKvicfJQmo 0tw0mYnLEgBKyUkwNilPVwL7a4t/Hbfyq2V1S4NEKvym/8j2Zpy+mGwMRP3RCdjv Pk/grbg5fgUUTXv24DqJ5COegXQMLktO5TxyA4vsPzHui20LRsdR3tIT6QYwG00A TUC5KWCL8PDapChYoNKECQ8snR4tQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrledtgdduheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnheplefgteefiedtleelgeeg jeevhfeuteefvddtjeehveeuieefgedvhfeuleduteeunecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Dec 2021 17:13:44 -0500 (EST) Message-ID: <7a005e90-debb-c485-62b4-dbb49d63e5a7@enterprisedb.com> Date: Tue, 14 Dec 2021 23:13:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: Synchronizing slots from primary to standby Content-Language: en-US To: Masahiko Sawada Cc: pgsql-hackers References: <514f6f2f-6833-4539-39f1-96cd1e011f23@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24.11.21 07:11, Masahiko Sawada wrote: > I haven’t looked at the patch deeply but regarding 007_sync_rep.pl, > the tests seem to fail since the tests rely on the order of the wal > sender array on the shared memory. Since a background worker for > synchronizing replication slots periodically connects to the walsender > on the primary and disconnects, it breaks the assumption of the order. > Regarding 010_logical_decoding_timelines.pl, I guess that the patch > breaks the test because the background worker for synchronizing slots > on the replica periodically advances the replica's slot. I think we > need to have a way to disable the slot synchronization or to specify > the slot name to sync with the primary. I'm not sure we already > discussed this topic but I think we need it at least for testing > purposes. This has been addressed by patch v2 that adds such a setting.