https://www.postgresql.org/docs/12/logical-replication-restrictions.html

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: shishulkargini(at)gmail(dot)com
Subject: https://www.postgresql.org/docs/12/logical-replication-restrictions.html
Date: 2020-12-16 16:14:44
Message-ID: 160813528440.687.15936350056455800094@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/logical-replication-restrictions.html
Description:

Here, we should add one more point:

* Any column part of the replica identity needs to be of a type with a
equality operator.

Use Case:
When, I have added a table for logical replication(without any primary key)
which had a column with json datatype. I got below error at
target(subscription) db:

LOG: background worker "logical replication worker" (PID 17092) exited
with exit code 1

After that, I altered the table at source db and converted the datatype to
jsonb instead of json. Then, I dropped and recreated the table schema with
jsonb column datatype on replica db and the error got resolved.

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2020-12-16 23:42:27 Re: pg_upgrade is not correct
Previous Message liming185216@126.com 2020-12-15 10:08:55 where can I get the table definition and data in the documention?