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--