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 1jaZ4r-0003qc-Um for pgsql-docs@arkaria.postgresql.org; Mon, 18 May 2020 06:16:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jaZ4q-000177-1r for pgsql-docs@arkaria.postgresql.org; Mon, 18 May 2020 06:16:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaZ4o-000170-EB for pgsql-docs@lists.postgresql.org; Mon, 18 May 2020 06:16:39 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaZ4g-0000nJ-8M for pgsql-docs@postgresql.org; Mon, 18 May 2020 06:16:38 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 93C3958E3; Mon, 18 May 2020 02:16:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 18 May 2020 02:16:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=v5uizKPrdqjH7oHCx/D2EjyRkFx weoKdj39pe45GN7A=; b=ilCa459HWXVWJsHf5NdrziGpVZ5eWigMT7CDO+eOxRC L9hYBC2IGjCh/NoMzOofLveFihi5DmVpyGaKzegeZJZpjq4SI3CmGycaTrAr932e PBrLJghG19uOzQAQzqDVWXTKKTM6nsLvWKHpc1s/JHqrVLURF5wW9kYsdBrOW0Qb dE1+zGUS2lqNOi6E7uKPfkQxW1RWZoisD+3+P1bCNRB3Ke6Er6VZfaMoJNKnMhas FhPUsTTT2B7vSuo8HEyVp2zmL56GeiJX4OIgXaZOW/MetqR6/7mAQdnAv35JzGaK EZMls5t7NA9Y+LC2UugxLVxG6CB7Gohy2uWgrj1AOwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=v5uizK PrdqjH7oHCx/D2EjyRkFxweoKdj39pe45GN7A=; b=CT23APQI4LzZSaKKWFnXPD Q+n/M5fKORMwJgyAbL0qyFlNN1B9SAq8qMum2f+2oQHNqlaZaRqNBH7uGqvaNhGk wNqoG6Td1nYKZQaWB37S9NJEjIeUm7lPNPvTha8FQTUFjA80aLNojDPiIw6M5tyJ wIjrjTwVsAHrVud8wxeOna7wiMEIUYlUo3aRJGGnAxZq9aeu6No7dPHLCFHn93TL Wi6kXjVKMLsLSoyOt0tPBVU8WRNZYzahA6cFBThY6pXpwMmz3ClTsIQqw71DGXQh zwAg2dcRcxmYbYlZuHrEpsrDbkBg/XeJO5GQMMJP2sWz4KzS6Nos6qBp+hG0dKHA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtgedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrdduke dtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 6B88A30663E2; Mon, 18 May 2020 02:16:23 -0400 (EDT) Date: Mon, 18 May 2020 15:16:19 +0900 From: Michael Paquier To: Marina Polyakova Cc: daniel@yesql.se, a.lakhin@postgrespro.ru, pgsql-docs@postgresql.org Subject: Re: Missing comma? Message-ID: <20200518061619.GA1830@paquier.xyz> References: <5B3957FE-D31E-4838-B35C-C2F0EEC3E557@yesql.se> <6fa8ba75057b16f88010c2b945f720c0@postgrespro.ru> <20200514000738.GA166343@paquier.xyz> <226cae2ef0bf26a59011de38eec9c7f4@postgrespro.ru> <20200515021625.GD2462@paquier.xyz> <37b6de0c81a52af5c6a120cd3341ce28@postgrespro.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <37b6de0c81a52af5c6a120cd3341ce28@postgrespro.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 16, 2020 at 09:38:46PM +0300, Marina Polyakova wrote: > I like if we can explain the situation in more detail. But IMO the phrase > "same as default" sounds as if we will try to find the primary index and use > it if the required index (with pg_index.indisreplident = true) does not > exist. What do you think of "(same as nothing if the index used got > dropped)"? It seems that in this case we have the same behaviour: > - we cannot update or delete rows from the table if the action is published > because this table does not have a "working" replica identity; > - we cannot apply updates or deletes on subscriber until we have a primary > key or the published relation has replica identity full. Yeah. I was testing that once again today and you are right. The publisher would just assume that there is nothing as there is in the changes nothing about the old row for a relation using a replident based on an index that got dropped, and this even if there is a primary key on the relation. So using "same as nothing" would be fine. (No need for logical replication to test that actually. You can just use one cluster with wal_level = logical and a slot with test_decoding to grab the same amount of information.) Would you like to send an updated patch? Note that as the release of beta1 is planned for this week, we have a grace period until the version is tagged on HEAD. -- Michael --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl7CKDMACgkQnvQgOdby QH1fFRAApmLvUcC68FPRw7uibGKebgj+DnevzIHZEKFJcskZ8ZDAdhuINiy6h6TN m1TrKmB44rQD2KtJ7FaPRPY1sDEKLVt2+KNn+Ra7rORIhim3N3IQ/d3LqJabJwDF xxHoWpDWDZaXiLKnpprkH3ManF+n7hfKzN7OvwsypuyChF1SFVQxn9xAyAjunq3T jRmkPyKPJ+ZGg4Tml19cYMTWRp7ezVQJWzwrb7biGdtO8qb2hz0H7eKRkABvlMBm mB1aI6DoYwrWDjVu2smAJIcvLVNY8rE5kaQFeo3pc2fZi03IumeYYyYgUJKb2dBC ESnWdTE8tliD+jM6qVeIw4/UAnCVOBDQaiMTaLzMh+EXVlF50L/INg+eCdJeNhr6 Sg8tV43PrVd/pIxVmKLCQ9WP/jfiUqEC2sxO910RHOj76F8K4XVUdeJMYtiAjqp5 l8bbAMCnVkNKTbaPjgI0CBQgGzvGS4Vbm8i+Cq5+JLcl1x/Wvs+wtCZ9cDLN/BPV nKcQAfbZbSJPl/JS2ShJKxJcJbQqqmwQNZ51wCvwBsCGFdJPJVB8Z+OAobrtEqOr vACh4r+qj6gTLDZTR2rESUn+wZpE1ZTneVAqo5oIDQbelt5vlgqXfBoJqIpE63Bf pNXuXgqkbiwTo4j1y+ddV7aQQUgLmkJst2FgPrAzkp0kTeBoNwk= =oDf3 -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--