Re: logical replication issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike L <giantmetfan(at)comcast(dot)net>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: logical replication issue
Date: 2025-04-17 15:05:25
Message-ID: 2200808.1744902325@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Mike L <giantmetfan(at)comcast(dot)net> writes:
> Should logical replication fail due to a column of type 'xml' in a table
> in a publication?

Well, as you note, there's no equality operator for type xml.

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). 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.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Mike L 2025-04-17 15:52:02 Re: logical replication issue
Previous Message Mike L 2025-04-17 14:06:24 logical replication issue