From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: shishulkargini@gmail.com
Subject: https://www.postgresql.org/docs/12/logical-replication-restrictions.html
Date: Wed, 16 Dec 2020 16:14:44 +0000
Message-ID: <160813528440.687.15936350056455800094@wrigleys.postgresql.org> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, shishulkargini@gmail.com
Subject: Re: https://www.postgresql.org/docs/12/logical-replication-restrictions.html
In-Reply-To: <160813528440.687.15936350056455800094@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox