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 1jalUH-0000hY-0n for pgsql-docs@arkaria.postgresql.org; Mon, 18 May 2020 19:31:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jalUF-0000wz-GR for pgsql-docs@arkaria.postgresql.org; Mon, 18 May 2020 19:31:43 +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 1jalUE-0000ws-Sy for pgsql-docs@lists.postgresql.org; Mon, 18 May 2020 19:31:43 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jalU9-0002r7-N5 for pgsql-docs@postgresql.org; Mon, 18 May 2020 19:31:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 1C10A21C67E5; Mon, 18 May 2020 22:31:36 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from mail.postgrespro.ru (unknown [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id E541B21C67E1; Mon, 18 May 2020 22:31:35 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1589830295; bh=KcjcJDpgXoJPddKJUrwSkyuZ+WUgxhpFROJ5jgFttgo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=juLw1WJaodVMtFPFLlji3SLwTTNK+gtuliiRwnPPPvV5iIzec67eEcjbcSOSbqZ6t HAWjr9iw4uXUXUqypjyY8YBjxNf9nk7z6WIJP+I7Zr1hkoxawUok7il8kBZXQRUef3 3C+av6bxjFslEMLF5p/GpUi6GsAHehVzMC9ITbTE= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_db0af7783e72b020066f68d64a05cf84" Content-Transfer-Encoding: 7bit Date: Mon, 18 May 2020 22:31:35 +0300 From: Marina Polyakova To: Michael Paquier Cc: daniel@yesql.se, a.lakhin@postgrespro.ru, pgsql-docs@postgresql.org Subject: Re: Missing comma? In-Reply-To: <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> <20200518061619.GA1830@paquier.xyz> User-Agent: Roundcube Webmail/1.4.0 Message-ID: <74011867ff6e9c35ad195d1c3e44ed6c@postgrespro.ru> X-Sender: m.polyakova@postgrespro.ru Organization: Postgres Professional List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_db0af7783e72b020066f68d64a05cf84 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2020-05-18 09:16, Michael Paquier wrote: > 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. Glad to hear this =) > 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. The patch is attached, changes to html such as they were discussed. -- Marina Polyakova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --=_db0af7783e72b020066f68d64a05cf84 Content-Transfer-Encoding: base64 Content-Type: text/x-diff; name=0001-Fix-the-description-of-the-field-pg_class.relreplide.patch Content-Disposition: attachment; filename=0001-Fix-the-description-of-the-field-pg_class.relreplide.patch; size=1440 RnJvbSBjMzIwODVlZDBiZTEzZGExMmVlNTg4YzA3NTEzMDk4NzM3OGIzNDQ2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJpbmEgUG9seWFrb3ZhIDxtLnBvbHlha292YUBwb3N0Z3Jl c3Byby5ydT4KRGF0ZTogTW9uLCAxOCBNYXkgMjAyMCAyMjoxOTo0NiArMDMwMApTdWJqZWN0OiBb UEFUQ0hdIEZpeCB0aGUgZGVzY3JpcHRpb24gb2YgdGhlIGZpZWxkIHBnX2NsYXNzLnJlbHJlcGxp ZGVudAoKLSBBZGQgYSBjb21tYSBiZXR3ZWVuICJmID0gYWxsIGNvbHVtbnMiIGFuZCAiaSA9IGlu ZGV4IHdpdGggLi4uIi4KLSBGaXggdGhlIGRlc2NyaXB0aW9uIG9mIHJlcGxpY2EgaWRlbnRpdHkg aW5kZXggaWYgdGhlIGluZGV4IHVzZWQgZ290IGRyb3BwZWQKICAoaW4gdGhpcyBjYXNlIHdlIGNh bm5vdCB1cGRhdGUgb3IgZGVsZXRlIHJvd3MgZnJvbSB0aGUgdGFibGUgaWYgdGhlIGFjdGlvbiBp cwogIHB1Ymxpc2hlZCBldmVuIGlmIHRoZSB0YWJsZSBoYXMgYSBwcmltYXJ5IGluZGV4KS4KLS0t CiBkb2Mvc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