Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b3ZG0-0007Zr-5B for pgsql-admin@arkaria.postgresql.org; Fri, 20 May 2016 01:29:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b3ZFz-0005tn-3w for pgsql-admin@arkaria.postgresql.org; Fri, 20 May 2016 01:29:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b3ZFx-0005tQ-5B for pgsql-admin@postgresql.org; Fri, 20 May 2016 01:29:37 +0000 Received: from adriana.opensysperu.com ([158.69.30.115]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b3ZFs-0001IB-Nw for pgsql-admin@postgresql.org; Fri, 20 May 2016 01:29:35 +0000 Received: from localhost (localhost [IPv6:::1]) by adriana.opensysperu.com (Postfix) with ESMTP id 2B771B553; Thu, 19 May 2016 20:30:41 -0500 (PET) Received: from adriana.opensysperu.com ([IPv6:::1]) by localhost (adriana.opensysperu.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id qJvGVQOy-6Z3; Thu, 19 May 2016 20:30:39 -0500 (PET) Received: from localhost (localhost [IPv6:::1]) by adriana.opensysperu.com (Postfix) with ESMTP id EA73EB55C; Thu, 19 May 2016 20:30:38 -0500 (PET) X-Virus-Scanned: amavisd-new at opensysperu.com Received: from adriana.opensysperu.com ([IPv6:::1]) by localhost (adriana.opensysperu.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 7PTctXrkGL3r; Thu, 19 May 2016 20:30:38 -0500 (PET) Received: from adriana.opensysperu.com (adriana.opensysperu.com [158.69.30.115]) by adriana.opensysperu.com (Postfix) with ESMTP id 95E27B553; Thu, 19 May 2016 20:30:38 -0500 (PET) Date: Thu, 19 May 2016 20:30:37 -0500 (PET) Subject: Re: read-only remote replica Message-ID: From: Alvaro Aguayo Garcia-Rada To: pgsql-admin@postgresql.org, Jon Hancock MIME-Version: 1.0 In-Reply-To: References: Content-Type: multipart/alternative; boundary="----=_Part_216322_659340252.1463707837693" X-Mailer: Zimbra 8.6.0_GA_1153 (MobileSync - SonyD6633/5.1.1-EAS-2.0) Thread-Topic: read-only remote replica Thread-Index: wZfjUKCEmau/J0l/H7sZtLdIwdM5ng== X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ------=_Part_216322_659340252.1463707837693 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Jon. What postgres version are you using on your master database server? If you = use(or can upgrade to) 9.4/9.5, you can consider using pglogical, which wor= ks by sending WAL from the master to the read-only slave. It's really effic= ient, as, unlikely the trigger based replicators, it does not double writes= the replicated information. Here's he website: http://2ndquadrant.com/en/r= esources/pglogical/ Regards, Alvaro Aguayo Jefe de Operaciones Open Comb Systems E.I.R.L. Oficina: (+51-1)=C2=A03377813=C2=A0| RPM: #034252 / (+51)=C2=A0995540103=C2= =A0 | RPC: (+51)=C2=A0954183248 Website:=C2=A0www.ocs.pe Sent from my Sony Xperia=E2=84=A2 smartphone ---- Jon Hancock wrote ---- Hi list, I need a read only replica of my postgres server (assume current/recent stable release). The master is in a reliable data center in California. The read-only replica would be in an office in New Zealand. Bandwidth can be challenging from our office. It works but bandwidth is highly variable. The reason for the read-only replica is we have an old reports system in our office that connects directly to the db via ODBC. Simply too much work to replace this system for now. Its not an option to do nightly dumps/download/imports as we need closer to real time replica. A few minutes delay is ok. Any thoughts would be appreciated on how to have a stable/reliable method. thanks, Jon --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin ------=_Part_216322_659340252.1463707837693 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi, Jon.

What postgres version are you using on your master database = server? If you use(or can upgrade to) 9.4/9.5, you can consider using pglog= ical, which works by sending WAL from the master to the read-only slave. It= 's really efficient, as, unlikely the trigger based replicators, it does no= t double writes the replicated information. Here's he website: http://2ndquadrant.com/en/res= ources/pglogical/

Regards,

Alvaro Aguayo
Jefe de Operaciones
Open Comb Systems E.I.R.L.

Oficina: (+51-1) 3377813 | RPM: #034252 / (+51)= 60;995540103  | RPC: (+51) 954183248
Website: www.ocs.pe

Sent from my Sony Xperia™ smartphone



---- Jon Hancock wrote ----


Hi list,
I need a read only replica of my postgres server (assume
current/recent stable release).
The master is in a reliable data center in California.  The read-o= nly
replica would be in an office in New Zealand.  Bandwidth can be
challenging from our office.  It works but bandwidth is highly
variable.

The reason for the read-only replica is we have an old reports system
in our office that connects directly to the db via ODBC.  Simply t= oo
much work to replace this system for now.  Its not an option to do
nightly dumps/download/imports as we need closer to real time replica.
A few minutes delay is ok.

Any thoughts would be appreciated on how to have a stable/reliable meth= od.

thanks, Jon


--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.p= ostgresql.org/mailpref/pgsql-admin
------=_Part_216322_659340252.1463707837693--