From: | Gabriel Furstenheim Milerud <furstenheim(at)gmail(dot)com> |
---|---|
To: | PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | pg10 logical replication set schema |
Date: | 2018-01-30 13:47:06 |
Message-ID: | CAJN3DWoVDpuE0FPtyjm0PcPozgNEvOWo9VVa4Xe5PNWUPyZjwQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
I've been following
https://hackernoon.com/postgresql-logical-replication-86df5b51cc5a to set
up logical replication.
I've created the table in master and publication
create table test_table_replication (a int);
create publication test_table_replication_pub for table
test_table_replication;
In the standby I attempt to create a table and a subscription
create table some_schema.test_table_replication (a int);
create subscription test_table_replication
connection 'host=localhost dbname=postgres user=standby_user
pass=pass port=$master_port'
And I get the error relation "public.test_table_replication" does not exist.
Is it possible to tell the subscription that it should use the table
some_schema.test_table_replication instead of
public.test_table_replication? I can't find any reference in the docs about
tables or schemas in subscriptions.
Thanks
Gabriel Fürstenheim
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Boussekey | 2018-01-30 14:26:17 | Re: PG Sharding |
Previous Message | Findlay, Thomas C | 2018-01-30 13:44:53 | pgadmin 4 shapefile loader |