From jacques.palayret@meteo.fr Mon Jun 3 16:00:51 2019 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 1hXpOV-0003r3-1y for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:01:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXpOT-0003AR-Oj for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:01:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXpOT-0002xl-92 for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:01:05 +0000 Received: from smtp-zimbra.meteo.fr ([137.129.16.22] helo=celebrian1.meteo.fr) by makus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1hXpOM-0005hp-Mx for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:01:03 +0000 Received: from localhost (localhost [127.0.0.1]) by celebrian1.meteo.fr (Postfix) with ESMTP id 1B8461C2348 for ; Mon, 3 Jun 2019 18:00:52 +0200 (CEST) Received: from celebrian1.meteo.fr ([127.0.0.1]) by localhost (celebrian1.meteo.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PFG_08CBjFfj for ; Mon, 3 Jun 2019 18:00:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by celebrian1.meteo.fr (Postfix) with ESMTP id EF9A31C234B for ; Mon, 3 Jun 2019 18:00:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at celebrian1.meteo.fr Received: from celebrian1.meteo.fr ([127.0.0.1]) by localhost (celebrian1.meteo.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cBc5n29uDq5J for ; Mon, 3 Jun 2019 18:00:51 +0200 (CEST) Received: from zumba5.meteo.fr (zumba5 [172.31.9.201]) by celebrian1.meteo.fr (Postfix) with ESMTP id C95EE1C2348 for ; Mon, 3 Jun 2019 18:00:51 +0200 (CEST) Date: Mon, 3 Jun 2019 18:00:51 +0200 (CEST) From: PALAYRET Jacques To: pgsql-general@lists.postgresql.org Message-ID: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> Subject: One way replication in PostgreSQL MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_b130d22e-5818-4e2e-8d47-603fb775a7c4" X-Originating-IP: [172.31.9.204] X-Mailer: Zimbra 8.7.11_GA_1854 (ZimbraWebClient - FF45 (Linux)/8.7.11_GA_1854) Thread-Index: s8bBw0tk4NiQgh5Kz8OIacY/fZOGug== Thread-Topic: One way replication in PostgreSQL List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_b130d22e-5818-4e2e-8d47-603fb775a7c4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=20 If, for security reasons, I can't create a connection or a flow from subscr= iber/secundary/slave towards provider/primary/master, witch replication sys= tems can I use ?=20 If possible, I would prefer partial replication (only some tables) to full = base replication (all instances).=20 Do trigger-based replication systems (like Slony or Londiste or others) nee= d a connection or flow from subscriber to the provider ?=20 Thanks in advance=20 ----- M=C3=A9t=C3=A9o-France -----=20 PALAYRET JACQUES=20 DCSC/MBD=20 jacques.palayret@meteo.fr=20 Fixe : +33 561078319=20 --=_b130d22e-5818-4e2e-8d47-603fb775a7c4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

If, for security reasons,= I can't create a connection or a flow from subscriber/secundary/slave towa= rds provider/primary/master, witch replication systems can I use ?
=
If possible, I would prefer partial replication (only some tables) to f= ull base replication (all instances).

Do trigger-based replication s= ystems (like Slony or Londiste or others) need a connection or flow from su= bscriber to the provider ?

Thanks in advance
----- M=C3=A9t=C3=A9o-France -----
PALAYRET JACQUES
DCSC= /MBD
jacques.palayret@meteo.fr
Fixe : +33 561078319
--=_b130d22e-5818-4e2e-8d47-603fb775a7c4-- From sfrost@snowman.net Mon Jun 3 16:13:39 2019 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 1hXpaj-0005PP-7h for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:13:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXpai-0006bv-0E for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:13:44 +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 1hXpah-0006bo-Mb for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:13:43 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXpaf-0004fT-2x for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:13:43 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 52E985F7AB; Mon, 3 Jun 2019 12:13:39 -0400 (EDT) Date: Mon, 3 Jun 2019 12:13:39 -0400 From: Stephen Frost To: PALAYRET Jacques Cc: pgsql-general@lists.postgresql.org Subject: Re: One way replication in PostgreSQL Message-ID: <20190603161339.GQ2480@tamriel.snowman.net> References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TuLZpJsoCmPfu6RO" Content-Disposition: inline In-Reply-To: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --TuLZpJsoCmPfu6RO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * PALAYRET Jacques (jacques.palayret@meteo.fr) wrote: > If, for security reasons, I can't create a connection or a flow from subs= criber/secundary/slave towards provider/primary/master, witch replication s= ystems can I use ?=20 The simplest approach might be to use WAL shipping with one of the various backup tools that do that- eg: you could use pgbackrest in the archive_command of the primary system and push WAL to a repo that's on the replica (or some other system that the replica is allowed to connect to). > If possible, I would prefer partial replication (only some tables) to ful= l base replication (all instances).=20 Just to be clear, you couldn't use a WAL-based shipping method for partial replication (at least, not today anyway). Thanks, Stephen --TuLZpJsoCmPfu6RO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJc9UcyAAoJEO1sijiDR2RVJUIP/1+qXEo1w8kknsZ+it4Gg0jU /+iht6MysGsSjGC7LRnK0fJwIm+BC7CXaohm8R9clxQ+Ed23BSvqiaL1PWxk2QWn vbNFWaWVlirgLQTZOzPOYYGXfHOe1K2fHV//N74CmD1WEv9P+T3mQfUQygXGX7Pi b4sE3Q+1KEDu6V00p8oefzbZFfHN1yQp+4M4npHX65Iifv6CSB4vAOUiA4mD4yeC Z2L5YBgEOddUSU1oUzs9zaVARErBXf3NMwjlSo7T6XtBm1U2qgzuKX3oBb83MGDC WobWVqa4GA9GQWTFxcaIJB8xGWvx7Y8O1gyrCDCaXlaLUH+OFweLOk9Aq8uc6SbQ j/pH/5rPP6VHG+MEqrhxYKxKlSQT6KfwsuqCeyftznRDKveXOlrubvb3z0tFuZDR d607dLkN1+bX4OnIdlQIUFwlYVGFslnSuxkVYBK0EfQ2mxB1abjUlq1MeDCfYWGs GfnVrMy8KI0oEOIoGXh4jEKj3agbDnagf9Y3LGKGdN5V00hXv8ZJpE0GPpW6QN2V uSTviRJaCH/dK7AE+8Y7988k7kvVtln7cj6xsjFVpk6/kaQ+4LGHLI0gwV2JIDa5 6xGYv5rWDxVC3w+oiggiJGTpyNgkjEu6eTf6LN9cG34JqzM/l1rdgtROIUPmF4s5 Pdv03H2wCewcxDY/1Kp1 =Tjmh -----END PGP SIGNATURE----- --TuLZpJsoCmPfu6RO-- From f.pardi@portavita.eu Mon Jun 3 16:18:21 2019 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 1hXpfL-0005zc-4A for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:18:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXpfJ-00072A-LL for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 16:18:29 +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 1hXpfJ-0006yl-9n for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:18:29 +0000 Received: from mail.portavita.nl ([80.113.160.212]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXpfD-0004m6-Bo for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 16:18:28 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.portavita.nl (Postfix) with ESMTP id 4481B5244E8 for ; Mon, 3 Jun 2019 18:18:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.portavita.nl Received: from mail.portavita.nl ([127.0.0.1]) by localhost (mail.portavita.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id X2jAB4lUfUUD for ; Mon, 3 Jun 2019 18:18:21 +0200 (CEST) Received: from [192.168.199.3] (e177090.upc-e.chello.nl [213.93.177.90]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.portavita.nl (Postfix) with ESMTPSA id A0C21524491 for ; Mon, 3 Jun 2019 18:18:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.portavita.nl A0C21524491 Subject: Re: One way replication in PostgreSQL To: pgsql-general@lists.postgresql.org References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> From: Fabio Pardi Openpgp: preference=signencrypt Autocrypt: addr=f.pardi@portavita.eu; prefer-encrypt=mutual; keydata= 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 Message-ID: <6a62a18c-d2b6-65c6-4fbf-fac472798d58@portavita.eu> Date: Mon, 3 Jun 2019 18:18:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> 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 Hi, On 6/3/19 6:00 PM, PALAYRET Jacques wrote: > Hello, > > If, for security reasons, I can't create a connection or a flow from > subscriber/secundary/slave towards provider/primary/master, witch > replication systems can I use ? > To perform replication, you need some form of connectivity between the hosts (unless, you want to only apply archived WAL files, as mentioned by Stephen here above). In streaming replication your replica needs to be able to initiate the connection to master If you instead have, let's say, master -> replica or both your hosts can reach a 3rd host, you might work around the problem using an SSH tunnel. I discourage you from this latter option, anyway. > If possible, I would prefer partial replication (only some tables) to > full base replication (all instances). you could have a look into pglogical regards, fabio pardi From franknigth@gmail.com Mon Jun 3 23:39:54 2019 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 1hXwYj-00022M-1t for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 23:40:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hXwYg-0000ez-9y for pgsql-general@arkaria.postgresql.org; Mon, 03 Jun 2019 23:40:06 +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 1hXwYf-0000es-UH for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 23:40:06 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hXwYZ-0006w3-3y for pgsql-general@lists.postgresql.org; Mon, 03 Jun 2019 23:40:05 +0000 Received: by mail-oi1-x244.google.com with SMTP id u64so14232800oib.1 for ; Mon, 03 Jun 2019 16:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version; bh=cNtMTc1rmYotUc09elfP8VLWbWEOxcfe/sllD28whlw=; b=eQ4mpwqiJARFvk5fx8bbMRm63In67Six+FowUZBtIuW8Y/7FBnbCWlcumJyzpY5+FC WezRTy6JjKJoSWWVeV4l/4rLGTaeGPB0T5znHp5WaL90OwI+5/EPPQJM4QBJL8P3Y3N8 U5FG0YiZ7ehEdUehM0W2lmdHSUrx2RgLN7phHZX5ZSZdNY50JwPgF3jB8yluCwI01ryy dEZSuX4kUmZbVA6+L75v+SpLBE31/tBbKW0h5GISSEgsWHMawe+k06ThtZv4uZGq3Mk3 ATOMthbusgF0l2hHyNsfPpaBlUPpOmzkkS3WJoFSWg6PC4VnSn+8wJAtvlXKu5RZt75w 0EKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version; bh=cNtMTc1rmYotUc09elfP8VLWbWEOxcfe/sllD28whlw=; b=ZVOrw3w6sWQIMtYs1sfh3NAKgufXsZ4gj7yQYSjA9/TCz7i97TXLLnThOVL0gQ4zDf jzzG2mp77zHgIubGMP7zmc0uoT/iZK3V2vp26KjtXE74v/zJn4ZWK4hqxOcQxghPWqOU BCHCmVetDjSiEvvd2RFGbc5s5sdYXOWjSW1DSuVLiHOLGSqc9pG91Vh6yaPxpZccwTml GV4HahTlHhJr6MRhMU2yRZ+f9GUBkMqSme/HmRn9nU1O5bpovS62YBO50HdfQbYC5n3s entofnDoC2jWm2uoFPRlvdxUESO1gqgbjTnPJkMZf6F65JXMjGfnh8xy0H+bzKYGMGYP GKDg== X-Gm-Message-State: APjAAAV70RlCYYbPlgPBz1x4yXHKEqF44/7EgNEbgGqLicztTyicFuV4 pMClTp6tRDvrpNZ4g1tmbdg= X-Google-Smtp-Source: APXvYqz9voMbIkm0Zoz1+L2TofRsi2uR0dLHHtWbNecUzJP+aSqilE/As5O+qULYwOwIDZbgXcp6Rg== X-Received: by 2002:aca:314b:: with SMTP id x72mr2680246oix.106.1559605196318; Mon, 03 Jun 2019 16:39:56 -0700 (PDT) Received: from frodriguez-HP-Notebook ([189.208.128.209]) by smtp.googlemail.com with ESMTPSA id k25sm1849719oig.5.2019.06.03.16.39.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 16:39:55 -0700 (PDT) Message-ID: <0f0d4d7e17496bcc162ffd22ed1eb92484fe38c0.camel@gmail.com> Subject: Re: One way replication in PostgreSQL From: Frank Alberto Rodriguez To: PALAYRET Jacques , pgsql-general@lists.postgresql.org Date: Mon, 03 Jun 2019 23:39:54 +0000 In-Reply-To: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> Content-Type: multipart/alternative; boundary="=-p9CNuK7oRJX5AgA7lHku" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-p9CNuK7oRJX5AgA7lHku Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8bit You could use FDW to replicate what you need to an external server from the provider/primary/master to the subscriber/secondary/slaveUsing triggers on the master tables that you want to replicate, you can execute the insert/update/delete actions on the secondary tables through the FDW.With this approach you only need a connection from provider to the subscriber. Regards On Mon, 2019-06-03 at 18:00 +0200, PALAYRET Jacques wrote: > Hello, > > If, for security reasons, I can't create a connection or a flow from > subscriber/secundary/slave towards provider/primary/master, witch > replication systems can I use ? > > If possible, I would prefer partial replication (only some tables) to > full base replication (all instances). > > Do trigger-based replication systems (like Slony or Londiste or > others) need a connection or flow from subscriber to the provider ? > > Thanks in advance > ----- Météo-France ----- > PALAYRET JACQUES > DCSC/MBD > jacques.palayret@meteo.fr > Fixe : +33 561078319 --=-p9CNuK7oRJX5AgA7lHku Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
You could use FDW to replicate= what you need to an external server from the provider/primary/master to the subscriber/secon= dary/slave
Using triggers on the master tabl= es that you want to replicate, you can executeWith this approach you only need a connection from provider to the su= bscriber.

Regards
On Mon, 2019-06-03 at 18:00 +0200, PALAYRET Jacque= s wrote:
Hello,
=
If, for security reasons, I can't create a connection or a flow from su= bscriber/secundary/slave towards provider/primary/master, witch replication= systems can I use ?

If possible, I would prefer partial replic= ation (only some tables) to full base replication (all instances).

D= o trigger-based replication systems (like Slony or Londiste or others) need= a connection or flow from subscriber to the provider ?
=
Thanks in advance
----- M=C3=A9t=C3=A9o-France ----= -
PALAYRET JACQUES
DCSC/MBD
jacques.palayret@meteo.fr
Fixe : = +33 561078319
--=-p9CNuK7oRJX5AgA7lHku-- From jacques.palayret@meteo.fr Tue Jun 4 07:02:45 2019 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 1hY3TD-0003Ke-42 for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 07:02:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY3TB-0004UF-QE for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 07:02:53 +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 1hY3TB-0004MJ-Gi for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 07:02:53 +0000 Received: from smtp-zimbra.meteo.fr ([137.129.16.22] helo=celebrian1.meteo.fr) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1hY3T6-0001Jx-6O for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 07:02:51 +0000 Received: from localhost (localhost [127.0.0.1]) by celebrian1.meteo.fr (Postfix) with ESMTP id 178B61C2165 for ; Tue, 4 Jun 2019 09:02:46 +0200 (CEST) Received: from celebrian1.meteo.fr ([127.0.0.1]) by localhost (celebrian1.meteo.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id iQLqvzrvwJB3 for ; Tue, 4 Jun 2019 09:02:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by celebrian1.meteo.fr (Postfix) with ESMTP id EBD821C2179 for ; Tue, 4 Jun 2019 09:02:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at celebrian1.meteo.fr Received: from celebrian1.meteo.fr ([127.0.0.1]) by localhost (celebrian1.meteo.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ulbAbYXdC8U8 for ; Tue, 4 Jun 2019 09:02:45 +0200 (CEST) Received: from zumba5.meteo.fr (zumba5 [172.31.9.201]) by celebrian1.meteo.fr (Postfix) with ESMTP id CA6A81C2165 for ; Tue, 4 Jun 2019 09:02:45 +0200 (CEST) Date: Tue, 4 Jun 2019 09:02:45 +0200 (CEST) From: PALAYRET Jacques To: pgsql-general@lists.postgresql.org Message-ID: <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> In-Reply-To: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> Subject: Re: One way replication in PostgreSQL MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_49d947f5-d6d9-410e-938f-04326b589de7" X-Originating-IP: [172.31.9.205] X-Mailer: Zimbra 8.7.11_GA_1854 (ZimbraWebClient - FF45 (Linux)/8.7.11_GA_1854) Thread-Topic: One way replication in PostgreSQL Thread-Index: s8bBw0tk4NiQgh5Kz8OIacY/fZOGuiKscuXz List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_49d947f5-d6d9-410e-938f-04326b589de7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=20 Thanks a lot for the suggested solutions.=20 So, I can use WAL-shipping replication from Primary to the Secundary server= , but it's only for full replication.=20 Let's call " P " the provider/primary/master and " S " the subscriber/secun= dary/slave one.=20 For partial replication (not all the tables), the solutions should use a th= ird (intermediate / middle) server which could have both ways flow with the= server P but only one way flow towards the server S.=20 For example, a logical replication (pglogical or logical Postgresql replica= tion) between server P and the middle server and then a WAL-shipping replic= ation between middle server and server S.=20 Is that right ?=20 About the " FDW " solution in " an external server " (a middle one), is it = possible to integrate the FDW in the P server to avoid the " external serve= r " ?=20 =3D> What about the trigger-based replication systems like Slony or Londist= e ; is it really necessary to have a connection or flow from the server S t= owards the server P ?=20 Regards=20 De: "PALAYRET Jacques" =20 =C3=80: pgsql-general@lists.postgresql.org=20 Envoy=C3=A9: Lundi 3 Juin 2019 18:00:51=20 Objet: One way replication in PostgreSQL=20 Hello,=20 If, for security reasons, I can't create a connection or a flow from subscr= iber/secundary/slave towards provider/primary/master, witch replication sys= tems can I use ?=20 If possible, I would prefer partial replication (only some tables) to full = base replication (all instances).=20 Do trigger-based replication systems (like Slony or Londiste or others) nee= d a connection or flow from subscriber to the provider ?=20 Thanks in advance=20 ----- M=C3=A9t=C3=A9o-France -----=20 PALAYRET JACQUES=20 DCSC/MBD=20 jacques.palayret@meteo.fr=20 Fixe : +33 561078319=20 --=_49d947f5-d6d9-410e-938f-04326b589de7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

Thanks a lot for the sugg= ested solutions.

So, I can use WAL-shipping replication from Primary= to the Secundary server, but it's only for full replication.

Let's = call " P " the provider/primary/master  and " S " the subscriber/secun= dary/slave one.
For partial replication (not all the tables), the soluti= ons should use a third (intermediate / middle) server which could have both= ways flow with the server P but only one way flow towards the server S.For example, a logical replication (pglogical or logical Postgresql replic= ation) between server P and the middle server and then a WAL-shipping repli= cation between middle server and server S.
Is that right ?

About = the " FDW " solution in " an external server " (a middle one), is it possib= le to integrate the FDW in the P server to avoid the " external server " ?<= br>
=3D> What about the trigger-based replication systems like Slony = or Londiste ; is it really necessary to have a connection or flow from the = server S towards the server P ?

Regards

De: "PALA= YRET Jacques" <jacques.palayret@meteo.fr>
=C3=80: pgsql-gen= eral@lists.postgresql.org
Envoy=C3=A9: Lundi 3 Juin 2019 18:00:51=
Objet: One way replication in PostgreSQL

Hello,

If, for se= curity reasons, I can't create a connection or a flow from subscriber/secun= dary/slave towards provider/primary/master, witch replication systems can I= use ?

If possible, I would prefer partial replication (only so= me tables) to full base replication (all instances).

Do trigger-base= d replication systems (like Slony or Londiste or others) need a connection = or flow from subscriber to the provider ?

Thanks in = advance
----- M=C3=A9t=C3=A9o-France -----
PALAYRET JACQUE= S
DCSC/MBD
jacques.palayret@meteo.fr
Fixe : +33 561078319
<= /div>
--=_49d947f5-d6d9-410e-938f-04326b589de7-- From guillaume@lelarge.info Tue Jun 4 07:33:43 2019 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 1hY3xK-0006Du-1k for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 07:34:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY3xH-0007va-Qv for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 07:33:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY3xG-0007sH-W5 for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 07:33:59 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY3xD-0000zE-OV for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 07:33:57 +0000 Received: by mail-oi1-x244.google.com with SMTP id m202so3704573oig.6 for ; Tue, 04 Jun 2019 00:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lelarge-info.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cMG40abh6dz2MZNccuN940ZK5gHXUrKoLD4V5/lUQFc=; b=d6NQTiIGu3tZ9VATR7ukREHOh78F6jNaxNmsQIe6cakmCpPiQeKTyPzGjGk0RqLfaT oIYxed5bOBflvz00yFqjNPW8rRxeNYNdp/mtYUzcOF7xW+TKMtXsTY3ZM+d7bvRbfxj6 N8TnegOT/nYsRppN71JUDJG7YGFJ47fHOAruopdaYpRAdjVBcG8wsSJbyPbt3d5fP1KN 1CSUCt33EhyQFWJYaG5fw1EFsi8UHSgQafrusp9dFLNjKl0qkC5cdsoEiPyK0w1Ihpfy ecNB9jVVUvYA3YMTimztRg99tN0qf+fw5N08R2S7qOtJn3s437bp7g9gLNwJ8NtDsVhH TmJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cMG40abh6dz2MZNccuN940ZK5gHXUrKoLD4V5/lUQFc=; b=qIybO491extqqWAPMgQl8L9TSLpLJafhCdwDgOm65ofH9iBGG6xoyT3t9qbFHoWeum A1hq96Gf+6tUi5rf5KnLf9jxCEpJ32T0cfjiTUslct8uH9iXnf0Xiz+ZhMfwPjgYvVmo DwxIWTWTOHcMe5/ZtztKoxXuNtTUNQ4Ga9oHE1lBe2FdPEr1HBfbjxoDz1/cnrXM6W2k gGagpjlBkYetLasQfqXoQz1y0kuJvVwQAU6o0mjrqpOL7KGo/KhSeZqxRAwmDMBhKnHu DSx6+aThN+sutBLM5PRPZiJVHd0UZEG/5w/cQ7IWc8yP5s6wRwR9o20eL6KbhSNXoFw/ d29A== X-Gm-Message-State: APjAAAUVH9njVMYpiM0K7ocmxi31gdlTv0WKGGRvI1ZqLsCnFuQOeX9/ mwkio1VJZcSmMP1Q5/2Pv5LSgI7g3kD9kD804bWqUQ== X-Google-Smtp-Source: APXvYqz80O6qk3at3HqkUjT3svwM06j4MYOdNQiI8E2XpCDwxiJp44A3/u0eXbYqpGVf4BVQ3+L9ajn+fb7j9603JTw= X-Received: by 2002:aca:55d8:: with SMTP id j207mr3159264oib.78.1559633634831; Tue, 04 Jun 2019 00:33:54 -0700 (PDT) MIME-Version: 1.0 References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> In-Reply-To: <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> From: Guillaume Lelarge Date: Tue, 4 Jun 2019 09:33:43 +0200 Message-ID: Subject: Re: One way replication in PostgreSQL To: PALAYRET Jacques Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000c8c2f6058a7a80c7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000c8c2f6058a7a80c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mar. 4 juin 2019 =C3=A0 09:03, PALAYRET Jacques a =C3=A9crit : > Hello, > > Thanks a lot for the suggested solutions. > > So, I can use WAL-shipping replication from Primary to the Secundary > server, but it's only for full replication. > > Yes. Let's call " P " the provider/primary/master and " S " the > subscriber/secundary/slave one. > For partial replication (not all the tables), the solutions should use a > third (intermediate / middle) server which could have both ways flow with > the server P but only one way flow towards the server S. > For example, a logical replication (pglogical or logical Postgresql > replication) between server P and the middle server and then a WAL-shippi= ng > replication between middle server and server S. > Is that right ? > > That could work. About the " FDW " solution in " an external server " (a middle one), is it > possible to integrate the FDW in the P server to avoid the " external > server " ? > > Not sure I understand where you're going here. =3D> What about the trigger-based replication systems like Slony or Londist= e > ; is it really necessary to have a connection or flow from the server S > towards the server P ? > > As far as I remember, with Slony, P must be able to connect to S, and S must be able to connect to P. --=20 Guillaume. Dalibo. --000000000000c8c2f6058a7a80c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Le=C2=A0mar. 4 juin 2019 =C3=A0=C2=A0= 09:03, PALAYRET Jacques <ja= cques.palayret@meteo.fr> a =C3=A9crit=C2=A0:
Hello,

T= hanks a lot for the suggested solutions.

So, I can use WAL-shipping = replication from Primary to the Secundary server, but it's only for ful= l replication.


Ye= s.

<= div>
Let's call " P " the provider/primary/= master=C2=A0 and " S " the subscriber/secundary/slave one.
For= partial replication (not all the tables), the solutions should use a third= (intermediate / middle) server which could have both ways flow with the se= rver P but only one way flow towards the server S.
For example, a logica= l replication (pglogical or logical Postgresql replication) between server = P and the middle server and then a WAL-shipping replication between middle = server and server S.
Is that right ?


That could work.

About the "= ; FDW " solution in " an external server " (a middle one), i= s it possible to integrate the FDW in the P server to avoid the " exte= rnal server " ?


<= div>Not sure I understand where you're going here.

=
= =3D> What about the trigger-based replication systems like Slony or Lond= iste ; is it really necessary to have a connection or flow from the server = S towards the server P ?


As far as I remember, with Slony, P must be able to connect to S, a= nd S must be able to connect to P.


--
Gu= illaume.
Dalibo.
--000000000000c8c2f6058a7a80c7-- From achill@matrix.gatewaynet.com Tue Jun 4 08:04:09 2019 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 1hY4Qk-0000nS-BD for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 08:04:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY4Qg-0007Rt-SE for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 08:04:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY4Qg-0007Md-C8 for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 08:04:22 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY4Qc-0001cd-Eg for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 08:04:21 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8) with ESMTPS id x5484926021977 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 4 Jun 2019 11:04:14 +0300 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x54849WL013324 for ; Tue, 4 Jun 2019 11:04:09 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: One way replication in PostgreSQL To: pgsql-general@lists.postgresql.org References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> From: Achilleas Mantzios Message-ID: <8046afdf-698d-8f87-9be8-50f963df6079@matrix.gatewaynet.com> Date: Tue, 4 Jun 2019 11:04:09 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> Content-Type: multipart/alternative; boundary="------------55B82EB22553B9AF866A8EFF" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.100.3 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.4 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SHORT_BODY,DYN_HAM_SIGNAT1, HTML_MESSAGE,TW_PG autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------55B82EB22553B9AF866A8EFF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 4/6/19 10:02 π.μ., PALAYRET Jacques wrote: > Hello, > > Thanks a lot for the suggested solutions. > > So, I can use WAL-shipping replication from Primary to the Secundary server, but it's only for full replication. > > Let's call " P " the provider/primary/master  and " S " the subscriber/secundary/slave one. > For partial replication (not all the tables), the solutions should use a third (intermediate / middle) server which could have both ways flow with the server P but only one way flow towards the > server S. > For example, a logical replication (pglogical or logical Postgresql replication) between server P and the middle server and then a WAL-shipping replication between middle server and server S. > Is that right ? > > About the " FDW " solution in " an external server " (a middle one), is it possible to integrate the FDW in the P server to avoid the " external server " ? > > => What about the trigger-based replication systems like Slony or Londiste ; is it really necessary to have a connection or flow from the server S towards the server P ? I'll describe our solution here, but its a far fetched approach, a diving into uncharted waters situation, but for us it was the only solution back in early 2000. In one word : The long forgotten DBMirror (Mentioned during "Postgresql 11 : what's old" comments that followed the presentation in Lisbon pgconf2018.eu) . You can setup your triggers, produce your SQL files, sent them to S whatever method you wish and run them without any connectivity from S to P. Setting up is very easy. However you must be prepared to carry this as "technical debt" in future upgrades. No Slony expert here, but in https://severalnines.com/blog/experts-guide-slony-replication-postgresql it is mentioned that you can ship in the form of SQL files as well. So you setup a slony slave inside your P system and produce SQL files which you replay to your remote S, with no connectivity to P. > > Regards > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > *De: *"PALAYRET Jacques" > *À: *pgsql-general@lists.postgresql.org > *Envoyé: *Lundi 3 Juin 2019 18:00:51 > *Objet: *One way replication in PostgreSQL > > Hello, > > If, for security reasons, I can't create a connection or a flow from subscriber/secundary/slave towards provider/primary/master, witch replication systems can I use ? > > If possible, I would prefer partial replication (only some tables) to full base replication (all instances). > > Do trigger-based replication systems (like Slony or Londiste or others) need a connection or flow from subscriber to the provider ? > > Thanks in advance > ----- Météo-France ----- > PALAYRET JACQUES > DCSC/MBD > jacques.palayret@meteo.fr > Fixe : +33 561078319 > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------55B82EB22553B9AF866A8EFF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 4/6/19 10:02 π.μ., PALAYRET Jacques wrote:
Hello,

Thanks a lot for the suggested solutions.

So, I can use WAL-shipping replication from Primary to the Secundary server, but it's only for full replication.

Let's call " P " the provider/primary/master  and " S " the subscriber/secundary/slave one.
For partial replication (not all the tables), the solutions should use a third (intermediate / middle) server which could have both ways flow with the server P but only one way flow towards the server S.
For example, a logical replication (pglogical or logical Postgresql replication) between server P and the middle server and then a WAL-shipping replication between middle server and server S.
Is that right ?

About the " FDW " solution in " an external server " (a middle one), is it possible to integrate the FDW in the P server to avoid the " external server " ?

=> What about the trigger-based replication systems like Slony or Londiste ; is it really necessary to have a connection or flow from the server S towards the server P ?

I'll describe our solution here, but its a far fetched approach, a diving into uncharted waters situation, but for us it was the only solution back in early 2000.
In one word : The long forgotten DBMirror (Mentioned during "Postgresql 11 : what's old" comments that followed the presentation in Lisbon pgconf2018.eu) . You can setup your triggers, produce your SQL files, sent them to S whatever method you wish and run them without any connectivity from S to P.
Setting up is very easy. However you must be prepared to carry this as "technical debt" in future upgrades.
No Slony expert here, but in https://severalnines.com/blog/experts-guide-slony-replication-postgresql it is mentioned that you can ship in the form of SQL files as well. So you setup a slony slave inside your P system and produce SQL files which you replay to your remote S, with no connectivity to P.


Regards

De: "PALAYRET Jacques" <jacques.palayret@meteo.fr>
À: pgsql-general@lists.postgresql.org
Envoyé: Lundi 3 Juin 2019 18:00:51
Objet: One way replication in PostgreSQL

Hello,

If, for security reasons, I can't create a connection or a flow from subscriber/secundary/slave towards provider/primary/master, witch replication systems can I use ?

If possible, I would prefer partial replication (only some tables) to full base replication (all instances).

Do trigger-based replication systems (like Slony or Londiste or others) need a connection or flow from subscriber to the provider ?

Thanks in advance
----- Météo-France -----
PALAYRET JACQUES
DCSC/MBD
jacques.palayret@meteo.fr
Fixe : +33 561078319



-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------55B82EB22553B9AF866A8EFF-- From franknigth@gmail.com Tue Jun 4 16:29:16 2019 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 1hYCJX-0001rX-Ec for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 16:29:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYCJV-0007Ct-9c for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 16:29:29 +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 1hYCJU-0007Cl-Tq for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 16:29:29 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYCJN-0005wG-Mc for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 16:29:28 +0000 Received: by mail-oi1-x22f.google.com with SMTP id q186so16066032oia.0 for ; Tue, 04 Jun 2019 09:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:mime-version; bh=/HScDRLau6oDARpMmAx6veZ9iYdrl4V+3SSThYzRhQ8=; b=JHYxg9cthp0fC6WN7gJqaZv1ukt3nZCvtDP5/F1+3yHq/sDUzA35/dGaEpIVZQq98C ViPz0t/DAOyBe7zO54M0641kwjfoFOwMkbbFzbXtpLiJz28t5SWBa5kmI0rXzzYv0Zlk w6VSTDs0SOjWQTLAA1q7ykFnZMDCUef6iRhMVz/dikkJeICSvqW+lup3gnY086V/k1K/ sosdtLJYitGUJ2stIhoipAu9s0UFsCCAEKjQoPtwIGU5t0QNArYA2Bxr3JHSv0l1zk+o CZFILMSapdx6+gJCSG9eC+FJh88UbTQDDN2zQPW8JkFXbIuq71rVn0jiMs8uEsZhhOKc oAYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version; bh=/HScDRLau6oDARpMmAx6veZ9iYdrl4V+3SSThYzRhQ8=; b=HL0hMZ8wAn6iPIiM+t52q/3Zk/Qo4pwAweQSYBdsRwgl4BddB87f9IEe14mBzRK5tb Gv36SVLgLG3gYGpI4q9FFEEZ5mgFa07HS20ld4oxGWepdxC3mmOaoYHmL/JXxNNtd/e9 XHLbWglv09dgqwr/8Gyf1BZrDMWQUC+UMln8lltvKY11DuKIYds2sT3CazNC8v14QaP2 xXrQmpRzAWRhjfFGYwHAQRsZRZHwzGvuvkOTbIXIg4CKBmoXea43Hkmf/DkfnyUkvp+n VdpyZr3f7FqnbEPPUeST34nTyT+Owhl/vPHWgPwU2kTCxacl/T7+Jj7XA5583Ju3Uiud ZIfw== X-Gm-Message-State: APjAAAWSjHYtwG/VNPIhvF15Cc2nsBjCImXPKcmIwh2blCqv8+CZaujk DKoAk2h8GMYnBqTfwRORP0o= X-Google-Smtp-Source: APXvYqxkqwqSe4bPGkt35DQsvZKWWbBOONqfxe20wRuO110KF0HJfteAjdO1kVdTVnHdAO0oAxlHOA== X-Received: by 2002:aca:4d8:: with SMTP id 207mr4948984oie.88.1559665758503; Tue, 04 Jun 2019 09:29:18 -0700 (PDT) Received: from frodriguez-HP-Notebook ([189.208.128.209]) by smtp.googlemail.com with ESMTPSA id c7sm6635267oia.47.2019.06.04.09.29.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2019 09:29:17 -0700 (PDT) Message-ID: Subject: Re: One way replication in PostgreSQL From: Frank Alberto Rodriguez To: PALAYRET Jacques , pgsql-general@lists.postgresql.org Date: Tue, 04 Jun 2019 16:29:16 +0000 In-Reply-To: <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> References: <1327243218.9378445.1559577651466.JavaMail.zimbra@meteo.fr> <573925547.9500307.1559631765591.JavaMail.zimbra@meteo.fr> Content-Type: multipart/alternative; boundary="=-Pncstt/PK/8Tbd1RzG1L" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-Pncstt/PK/8Tbd1RzG1L Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 8bit The FDW is a PostgreSQL extension to connect to other server from PosgreSQL server inside, with this solution you only need connections from P to S and no need a third server (external server), just use triggers to push the INSERT/UPDATE/DELETE information you want to replicate from P to S through Foreign Data Wrapper. If you need integrity on the replicated information then I suggest to use a control table to store the actions to replicate for the case when it fails you can keep trying til the action succeeds. Regards On Tue, 2019-06-04 at 09:02 +0200, PALAYRET Jacques wrote: > Hello, > > Thanks a lot for the suggested solutions. > > So, I can use WAL-shipping replication from Primary to the Secundary > server, but it's only for full replication. > > Let's call " P " the provider/primary/master and " S " the > subscriber/secundary/slave one. > For partial replication (not all the tables), the solutions should > use a third (intermediate / middle) server which could have both ways > flow with the server P but only one way flow towards the server S. > For example, a logical replication (pglogical or logical Postgresql > replication) between server P and the middle server and then a WAL- > shipping replication between middle server and server S. > Is that right ? > > About the " FDW " solution in " an external server " (a middle one), > is it possible to integrate the FDW in the P server to avoid the " > external server " ? > > => What about the trigger-based replication systems like Slony or > Londiste ; is it really necessary to have a connection or flow from > the server S towards the server P ? > > Regards > De: "PALAYRET Jacques" > À: pgsql-general@lists.postgresql.org > Envoyé: Lundi 3 Juin 2019 18:00:51 > Objet: One way replication in PostgreSQL > > Hello, > > If, for security reasons, I can't create a connection or a flow from > subscriber/secundary/slave towards provider/primary/master, witch > replication systems can I use ? > > If possible, I would prefer partial replication (only some tables) to > full base replication (all instances). > > Do trigger-based replication systems (like Slony or Londiste or > others) need a connection or flow from subscriber to the provider ? > > Thanks in advance > ----- Météo-France ----- > PALAYRET JACQUES > DCSC/MBD > jacques.palayret@meteo.fr > Fixe : +33 561078319 --=-Pncstt/PK/8Tbd1RzG1L Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
The FDW is a PostgreSQL extension to connect to other server from= PosgreSQL server inside, with this solution you only need connections from= P to S and no need a third server (external server= ), just use triggers to push the INSERT/UPDATE/DELETE information you want = to replicate from P to S through Foreign Data Wrapper.

=
If you need integrity on the replicated information then I suggest to = use a control table to store the actions to replicate for the case when it = fails you can keep trying til the action succeeds.

Regards

On Tue, 2019-06-04 at 09:02 +0200, PALAY= RET Jacques wrote:
= Hello,

Thanks a lot for the suggested solutions.

So, I can us= e WAL-shipping replication from Primary to the Secundary server, but it's o= nly for full replication.

Let's call " P " the provider/primary/mast= er  and " S " the subscriber/secundary/slave one.
For partial repli= cation (not all the tables), the solutions should use a third (intermediate= / middle) server which could have both ways flow with the server P but onl= y one way flow towards the server S.
For example, a logical replication = (pglogical or logical Postgresql replication) between server P and the midd= le server and then a WAL-shipping replication between middle server and ser= ver S.
Is that right ?

About the " FDW " solution in " an externa= l server " (a middle one), is it possible to integrate the FDW in the P ser= ver to avoid the " external server " ?

=3D> What about the trigge= r-based replication systems like Slony or Londiste ; is it really necessary= to have a connection or flow from the server S towards the server P ?
<= br>Regards

De: "PALAYRET Jacques" <jacques.palayret@m= eteo.fr>
=C3=80: pgsql-general@lists.postgresql.org
Envo= y=C3=A9: Lundi 3 Juin 2019 18:00:51
Objet: One way replicatio= n in PostgreSQL

Hello,

If, for security reasons, I can't create a con= nection or a flow from subscriber/secundary/slave towards provider/primary/= master, witch replication systems can I use ?

If possible, I wo= uld prefer partial replication (only some tables) to full base replication = (all instances).

Do trigger-based replication systems (like Slony or= Londiste or others) need a connection or flow from subscriber to the provi= der ?

Thanks in advance
----- M=C3=A9t= =C3=A9o-France -----
PALAYRET JACQUES
DCSC/MBD
jacques.palayret@m= eteo.fr
Fixe : +33 561078319

--=-Pncstt/PK/8Tbd1RzG1L--