Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWjaO-0005Wu-M4 for pgsql-admin@arkaria.postgresql.org; Tue, 11 Dec 2018 15:04:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gWjaM-0004qN-GU for pgsql-admin@arkaria.postgresql.org; Tue, 11 Dec 2018 15:04:34 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWjaM-0004qF-9A for pgsql-admin@lists.postgresql.org; Tue, 11 Dec 2018 15:04:34 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWjaH-0003WK-6s for pgsql-admin@lists.postgresql.org; Tue, 11 Dec 2018 15:04:33 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id wBBF4L1Q018914 for ; Tue, 11 Dec 2018 17:04:26 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id wBBF4LAw058146 for ; Tue, 11 Dec 2018 17:04:21 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Pg logical replication To: pgsql-admin@lists.postgresql.org References: <45858D83-3300-4308-947E-C44A067480EA@webedia-group.com> From: Achilleas Mantzios Message-ID: Date: Tue, 11 Dec 2018 17:04:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <45858D83-3300-4308-947E-C44A067480EA@webedia-group.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-26.1 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_SPAM_WATCHES8,SARE_SPEC_REPLICA_OBFU,TW_PG autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/12/18 4:42 μ.μ., Mai Peng wrote: > Hello, > We would like to use temp table on our streaming slaves ( no possible). > So we would like to replace replication streaming by logical replication ( all tables) . That's possible, provided all tables have a valid default REPLICA IDENTITY (i.e. PK) > Is possible to create a publication per schema even if there are some constraints between these schema ( check, domains )? At the moment, (as of pgsql 11) you cannot specify a schema. > How to handle DDL on schema on the slave ? By hand, or by other means, logical replication won't do this for you. > > Thanks you in advance -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt