I have a regular table transactions
with 200 million rows.
I decided to convert this table to a Declarative Partition using Logical Replication.
I created a Publication on node1 like so:
CREATE PUBLICATION transactions_pub FOR TABLE transactions;
When I try to create Subscription on node2 as below:
CREATE SUBSCRIPTION transactions_sub CONNECTION 'host=x.x.x.x port=5432 password=123456 user=replicator dbname=mydbname' PUBLICATION transactions_pub;
Returns this error:
ERROR: logical replication target relation "public.transactions" is not a table
Is it possible to replicate a regular table to a Declarative Partition Table using Logical Replication?