Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egjnz-00073a-FU for pgsql-general@arkaria.postgresql.org; Wed, 31 Jan 2018 04:15:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egjnx-0006dH-Vi for pgsql-general@arkaria.postgresql.org; Wed, 31 Jan 2018 04:15:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egjnx-0006d2-NP for pgsql-general@lists.postgresql.org; Wed, 31 Jan 2018 04:15:25 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egjnp-0003mk-SS for pgsql-general@postgresql.org; Wed, 31 Jan 2018 04:15:24 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C8E6020A43; Tue, 30 Jan 2018 23:15:15 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 30 Jan 2018 23:15:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=MGfPsg TiV1nkZJc6miIRfLko94Kv6Y6csL0rVa1ZMeY=; b=AktlaOeNqWgVg3j1V0Yss/ EM38q/JC9aVPSZ0btCeRLu1wUrh6qCSGNmAghG+giiu+0WzFOrYnH4J6nNmH4Hix vbAtAlMDnlDy1N2ErafO/+/h6m3h6168zF9hPewReo8pBExuVOvQxwyJscPeayjo AMrPWJclflQS4eQOXvz7KF0ak5ndxCH6JEkUmV0cZcrxaSWGWP12Pfgd6xvD/klQ UQnNYVS3g8zZsTO4ab4tZ2+qEZcpkv1uV0bB1k6mPL/KDiKwOi3RiWuHiDJ5al6j BMmno4RHKrUKpzpT4JWtGDgfZTprjUDxYlZ4DQ+O2IS4M69DtFmn1zE+XNqdnrOQ == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 8659E7E0FD; Tue, 30 Jan 2018 23:15:15 -0500 (EST) Subject: Re: pg10 logical replication set schema To: Gabriel Furstenheim Milerud , PostgreSQL mailing lists References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 30 Jan 2018 23:15:15 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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