Re: BUG #15784: logical replication replicate data of type array for operation insert but update/delete/truncate

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: zhq651(at)126(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15784: logical replication replicate data of type array for operation insert but update/delete/truncate
Date: 2019-04-28 11:14:33
Message-ID: CAMkU=1y+jMzif-8Uh9w_o-7E_GrhekX-xLgGMvk4XMvc2BLQ3w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Apr 28, 2019 at 2:48 AM PG Bug reporting form <
noreply(at)postgresql(dot)org> wrote:

> in subscriber
> ========
> --2.create same table as in publisher
> create table HA_LOGICAL_REPLICATION_TAB_005(id int, name text, array1
> text[], array2 integer[3][3]);
>

Note that you did not declare "id" to be a primary key on the subscriber.

If you look in the subscriber log, you should find:

ERROR: logical replication target relation
"public.ha_logical_replication_tab_005" has neither REPLICA IDENTITY index
nor PRIMARY KEY and published relation does not have REPLICA IDENTITY FULL

The array type is not relevant to the problem.

Cheers,

Jeff

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amit Langote 2019-04-28 15:50:35 Re: BUG #15779: Partition elimination doesn't work as expected when using PARTITION BY RANGE
Previous Message PG Bug reporting form 2019-04-28 06:47:22 BUG #15784: logical replication replicate data of type array for operation insert but update/delete/truncate