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 1u5RXI-000N3K-Mu for pgsql-admin@arkaria.postgresql.org; Thu, 17 Apr 2025 15:52:21 +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 1u5RXG-00BLnG-Fi for pgsql-admin@arkaria.postgresql.org; Thu, 17 Apr 2025 15:52:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u5RXF-00BLmj-GE for pgsql-admin@lists.postgresql.org; Thu, 17 Apr 2025 15:52:18 +0000 Received: from resqmta-h2p-567061.sys.comcast.net ([2001:558:fd02:2446::6]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u5RXC-000Yzo-39 for pgsql-admin@lists.postgresql.org; Thu, 17 Apr 2025 15:52:16 +0000 Received: from resomta-h2p-554995.sys.comcast.net ([96.102.179.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-567061.sys.comcast.net with ESMTPS id 5OsTue3sZz3fV5RX9u4p1a; Thu, 17 Apr 2025 15:52:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1744905132; bh=m81rgiEpGiwxdFhu0Ct/QNKKcN4GwJbsRZmauJ/FecE=; h=Received:Received:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type:Xfinity-Spam-Result; b=TxWW6Mvc+SJmi9eaVYLVHa6WDvHN4++WFhWErpNTchF0290VqWMVxXjIYOhp0GAyU MDct9uHR9WCDX+y6o//RF5NSwbQGBAc6M0YiQkPkr4EH8jFXldL1oSHkP7qnIcQO9u WClIf+1+/mMQa/OrDy24MMYSSuL47seJAta8AOG5Fq8Xn/edc4tSk5VteoHliv0mtX IVSZfEmANRhk+pDcMubWZRNcQXe+UaJKBJyTOKW72XJNJXDQKvbOstnqT9w50ifx4x EpQpJ5Fwnm1NfKHh6gscMlwuJbbSGzJW1VmcPBlxb3dSKYxMEr8+z2bAuH7Aj+qaXD EyDaC/6omKrpQ== Received: from [127.0.0.1] ([5.181.234.205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-554995.sys.comcast.net with ESMTPSA id 5RWzuBK7uaImU5RX1uXYJf; Thu, 17 Apr 2025 15:52:08 +0000 Date: Thu, 17 Apr 2025 11:52:02 -0400 From: Mike L To: pgsql-admin@lists.postgresql.org Subject: Re: logical replication issue User-Agent: Thunderbird for Android In-Reply-To: <2200808.1744902325@sss.pgh.pa.us> References: <2200808.1744902325@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----G8BW5SSB955ZQBK5VRCEFMCCZLQUX4 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfB7Fhb3fDb6XJd0LGlDJrd7a6xGRE9osXZWSlH0HayLXOfhNeXTr1JQEZqaYdaAS9VUCCbogL4TSWKu8XZ3xNCz4f4IRGbboxVf77a268XfxvQLl8UlC HG8Vbeb8u0cv/BdvB4+FZEREyKeHv+dWPhyfK512Q73cPgpZgREizL2co4KADAq6grrszqOnW/nhEyA/EFfWDdTjF1suYUNwztM= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------G8BW5SSB955ZQBK5VRCEFMCCZLQUX4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Tom=2E These tables with this issue are related to Arcgis=2E I canno= t modify existing tables by adding primary keys if it doesn't already have = one=2E Will have to exclude these tables from replication it appears=2E=20 On April 17, 2025 11:05:25 AM EDT, Tom Lane wrot= e: >Mike L writes: >> Should logical replication fail due to a column of type 'xml' in a tabl= e=20 >> in a publication? > >Well, as you note, there's no equality operator for type xml=2E > >Looking at the replication code, it looks like you might be able >to dodge the error if the replicated-to table has a primary key >(which'd necessarily not involve the xml column)=2E Without a PK, >it will do full-row equality checks to determine tuple matches, >and that's where it falls down trying to compare the xml column=2E > > regards, tom lane > > Mike L ------G8BW5SSB955ZQBK5VRCEFMCCZLQUX4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Thanks Tom=2E These tables with = this issue are related to Arcgis=2E I cannot modify existing tables by addi= ng primary keys if it doesn't already have one=2E
Will have to exclude t= hese tables from replication it appears=2E


On April 17, 2025 11:05:25 AM EDT, Tom Lane <= tgl@sss=2Epgh=2Epa=2Eus> wrote:
Mike L <giantmetfan@comcast=2En= et> writes:
Should logical replication fail due to a column of type 'xm= l' in a table
in a publication?

Well, as you note, there's no equality operator for type xml=2E
Looking at the replication code, it looks like you might be able
to dod= ge the error if the replicated-to table has a primary key
(which'd neces= sarily not involve the xml column)=2E Without a PK,
it will do full-row= equality checks to determine tuple matches,
and that's where it falls d= own trying to compare the xml column=2E

regards, tom lane

=
Mike L
------G8BW5SSB955ZQBK5VRCEFMCCZLQUX4--