pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Gabriel Furstenheim Milerud <furstenheim@gmail.com>
To: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: pg10 logical replication set schema
Date: Tue, 30 Jan 2018 23:15:15 -0500
Message-ID: <bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com> (raw)
In-Reply-To: <CAJN3DWoVDpuE0FPtyjm0PcPozgNEvOWo9VVa4Xe5PNWUPyZjwQ@mail.gmail.com>
References: <CAJN3DWoVDpuE0FPtyjm0PcPozgNEvOWo9VVa4Xe5PNWUPyZjwQ@mail.gmail.com>

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




view thread (2+ messages)

Message-ID: <bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com>
Permalink:  ../bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com/
Also on:    postgresql.org/message-id/bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, furstenheim@gmail.com
  Subject: Re: pg10 logical replication set schema
  In-Reply-To: <bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com>
  References: <CAJN3DWoVDpuE0FPtyjm0PcPozgNEvOWo9VVa4Xe5PNWUPyZjwQ@mail.gmail.com> <bb19f125-6698-7bb0-a187-5bfdb6958a98@2ndquadrant.com>

* 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