pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg10 logical replication set schema
2+ messages / 2 participants
[nested] [flat]
* pg10 logical replication set schema
@ 2018-01-30 13:47 Gabriel Furstenheim Milerud <furstenheim@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel Furstenheim Milerud @ 2018-01-30 13:47 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg10 logical replication set schema
@ 2018-01-31 04:15 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
parent: Gabriel Furstenheim Milerud <furstenheim@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Eisentraut @ 2018-01-31 04:15 UTC (permalink / raw)
To: Gabriel Furstenheim Milerud <furstenheim@gmail.com>; pgsql-general
On 1/30/18 08:47, Gabriel Furstenheim Milerud wrote:
> create table test_table_replication (a int);
> create publication test_table_replication_pub for table
> test_table_replication;
> 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?
No.
> I can't find any reference in the docs
> about tables or schemas in subscriptions.
Here:
https://www.postgresql.org/docs/10/static/logical-replication-subscription.html
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-01-31 04:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 13:47 pg10 logical replication set schema Gabriel Furstenheim Milerud <furstenheim@gmail.com>
2018-01-31 04:15 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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