Re: pg10 logical replication set schema

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Gabriel Furstenheim Milerud <furstenheim(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg10 logical replication set schema
Date: 2018-01-31 04:15:15
Message-ID: bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2018-01-31 04:19:55 Re: session_replication_role meaning?
Previous Message Ivan E. Panchenko 2018-01-30 22:50:46 Re: How to Optimize pg_trgm Performance