Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE6jm-005C1Y-9d for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2024 12:56:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tE6jk-00FQ0y-Ag for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Nov 2024 12:56:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE6jj-00FQ0q-AY for pgsql-hackers@lists.postgresql.org; Thu, 21 Nov 2024 12:56:44 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tE6jg-0036YM-Bd for pgsql-hackers@lists.postgresql.org; Thu, 21 Nov 2024 12:56:42 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.phl.internal (Postfix) with ESMTP id A907D13801B5; Thu, 21 Nov 2024 07:56:38 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Thu, 21 Nov 2024 07:56:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1732193798; x=1732280198; bh=ygxdqFBwzImiw47qAiRQE6TNDqd2wZHG 8DmQI5UuS5A=; b=l56aKobnr9IdXyN5zkLWe51zOPNN6TS2BTD3+eMg7glyJaml K2cThCktl2/mlaPN6Cl3QZojpWYUqmlfRvNnWGA00B1Vro83jbn8P1XxCCuT95d+ yTXL8G9e76zmC98a8gyZsZzEI8nmXRoaxtegcrl0+xqZ85ryk1X16MMQeeXSuwz3 6DYHThDZ8Zd+cHkQsRL+yC0xzAIJD1497oe1hlAvHOpdAh6RPCGjxkJe0aGKoW7C PuLbjpxv1hIwGpbrugWOnlRzYpive08tSB/PjIcOSQFCMoUN+WYtfZ8rYewRtqVJ JOnuwNBLF9KJ5PjU9Jri+M7+ucfaQrKX2KYVlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732193798; x= 1732280198; bh=ygxdqFBwzImiw47qAiRQE6TNDqd2wZHG8DmQI5UuS5A=; b=Y UzX26L/5SmWmODTck1LqCnJ62YL44mFx6OsAL9sn8kj5pqKsZCiuqzrrN8CAV5FH 5QMfY5f635AEGEwBm3M8v+doyHF5vCvcBLrRnuawrlmBvWkvuqwHYyiB/be0FTWI yDNTWw/DYvTxin67L2yxYrSJ8VAkLxPVHdXD77FLvDVhaoQ8oTJIXj76WLKFQCVa 9Fxy2b4o6NGVn3y3Xz3CFLseGn8apo0zN3DxY0CaDaVSEHleqamRGQemJNfoqgSQ EcoJG4Kj6eWDF52fvVlpCD4kWZKNkpHNUMmiNws8rnyhqy9VuARLq4vfoWLyb/oc f+GYmAz7bR7G9UcnLHniQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfeeigdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeen ucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnh htrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefg gffhffelgfeiueeukeehvdehvdefheffvdefueenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhr ghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepph hjsehilhhluhhmihhnrghtvggutghomhhpuhhtihhnghdrtghomhdprhgtphhtthhopehj ihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Nov 2024 07:56:37 -0500 (EST) Message-ID: <66e47fc0-77b7-4763-9b70-5c0b7ff15f21@eisentraut.org> Date: Thu, 21 Nov 2024 13:56:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: SQL:2011 application time To: Paul Jungwirth Cc: jian he , PostgreSQL Hackers References: <73d09e24-b6b9-4c89-8c0a-8842ca0f81f9@illuminatedcomputing.com> <081aa43c-3a97-4bd5-a498-ba02e0a7570d@illuminatedcomputing.com> <54390149-11d6-4f52-bbe8-f69832ceb3bd@eisentraut.org> <9b7cb814-c78c-489f-85b2-32be4398647f@illuminatedcomputing.com> <95c6d49b-7d60-4ad0-820c-e00ae1b2a3d4@illuminatedcomputing.com> <57ea0668-5205-426e-b934-efc89f2186c2@illuminatedcomputing.com> <6dc196d4-8853-49d7-8dd3-e391058451c1@eisentraut.org> Content-Language: en-US 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 14.11.24 18:25, Paul Jungwirth wrote: > On 11/13/24 02:11, Peter Eisentraut wrote: >> I have committed the documentation patches >> >> v43-0001-Add-WITHOUT-OVERLAPS-and-PERIOD-to-ALTER-TABLE-r.patch >> v43-0002-Update-conexclop-docs-for-WITHOUT-OVERLAPS.patch > > Thanks! > >> For the logical replication fixes >> >> v43-0003-Fix-logical-replication-for-temporal-tables.patch >> >> can you summarize what the issues currently are?  Is it currently >> broken, or just not working as well as it could? >> >> AFAICT, there might be two separate issues.  One is that you can't use >> a temporal index as replica identity, because ALTER TABLE rejects it. >> The other is that a subscriber fails to make use of a replica identity >> index, because it uses the wrong strategy numbers. > > Correct, there are two issues this commit fixes: > > On the publisher side: You can use REPLICA IDENTITY DEFAULT with a > temporal PK/UNIQUE index. There is no validation step, and sending the > changes works fine. But REPLICA IDENTITY USING INDEX fails because the > validation step rejects the non-btree index. Ok, I have committed the fix for this, and I'll continue working through the rest of the patches. > Then on the subscriber side, we are not applying changes correctly, > because we assume the strategy numbers are btree numbers.