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 1f9Ram-00073k-J7 for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 08:40:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9Ral-0007wR-61 for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 08:40:27 +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.89) (envelope-from ) id 1f9Rak-0007wI-SV for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 08:40:26 +0000 Received: from mimolette.dalibo.net ([212.85.157.144] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9Raf-0002g8-7n for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 08:40:26 +0000 Received: from stefan.dalibo.local (unknown [109.128.77.118]) by mail.dalibo.com (Postfix) with ESMTPSA id 52D3C2C091E; Fri, 20 Apr 2018 10:40:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1524213618; bh=F+AGmrRTtjFr2g9IZye9W+tHVZPN5AsZx20RNQdggZM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GGgMo5SjUfTq5RypvjxfAVoy97/lMeEtC89DBoisOhQwDmxE8q+FzavgbvRk3mCNq BTZ7aW2ne9Crzz7PN2U5fq/nU5Q/aXjNJNs7d2+v86ndoP2PM1FGXi0P7bgTKd7H/1 lWbWYo7yIo40Ssl5HO+M8PqFyaivujP12uWlRneA= Subject: Re: Doubts about replication.. To: Edmundo Robles Cc: pgsql-general@lists.postgresql.org References: <31d48ed7-2c92-3776-625a-cb153885ac6d@a-kretschmer.de> From: Stefan Fercot Openpgp: preference=signencrypt Autocrypt: addr=stefan.fercot@dalibo.com; prefer-encrypt=mutual; keydata= xsBNBFlaBw0BCACuIZziAposbai+q8nYou/xsgIKq7BzR+trBYLuJye90wBml2TXLKrBAvT8 U43CBTZkP1EWbtoNvIDjtAyUW7zM4DwYpKm44DzQMaj9A/kh1THzUmhE7QaybVgtkGKZlyse +filLbeLDkUKzIlDvWahD8BJjZEV4EyAKxhkgU3uzaFMqqmnEqZDKuyrZUDdabjVWq9vfbLI UVZSf61IJ+F/AXdW7hAJrr+c2OlaXCtX3WdhK79D0aOzxxVGfHE+h0wt57HYRyZxbF0cy36/ 7rznS4x34gVjyrM6Pu6/E4QZUL1DKGqtjYx7tKGK6GeYQkvELsdPbJ1zcWlfLB0OXl0JABEB AAHNKFN0ZWZhbiBGZXJjb3QgPHN0ZWZhbi5mZXJjb3RAZGFsaWJvLmNvbT7CwHgEEwECACIF AllaBw0CGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJECr9+SNqoVgvU3IH/jLMTOoo pm9qYFWIKbIpFFwtuEaJr+WbLEmJZaMwLhW/btPqHVtq3c73VHWXBmuSfWNW+M3WfPDPa55H 4v4HQ+l5sANeIH5wf5LdyDa+XPdoCBu+OAon44qCwrDJad46KWljkmenirJHfR71bBPUM+u0 mxv9MuJbMzaTWCO/CiKQbAFM20Uo2PQ8ARpp3GpGcLzHhXa3s3Iktq57z66jGz5BmfU4E1/p fpfomTYBSmGvDoqJs9SZ/rfxvvUzwy1rCy8IXZer1RuDbcW8FFzymUpAb/inWNuNv8udn+5k LTneSSrLuVAtE516Esvxa5BjAnB8C8QsRsKnkY1DySpkbe/OwE0EWVoHDQEIAK1C7zgxqRKG ku5TX/c2WdUpJWVpoUkLSx0AFHVC9+BxueS6KYI4ou9ZXE0jTzN4Wk+KveiZr5PiBXbKF0SZ 6MJLATbd3w4hSWMHMLdLdCY0C1EWDZL6qojr6bqLk8XuTM14b2yA03jkkEzotQrb4nWWvZko YnwkSxiOCOW7C9s3WrsMHI3kM0EwtW0lXKpaEoX8e0VFjsk6sK41bg7wSb5pFzTr7NZ2VGxM t3TgiJxD4arWESflVxWfOoXutGqYHxnGBrHm3qtWpU6azp4Dtfw6euxu9eVycf87XZUnmi+p EmRcRvaJWD27/tg2u84Y0ldlryLDSf/avm57JI3itrUAEQEAAcLAXwQYAQIACQUCWVoHDQIb DAAKCRAq/fkjaqFYL1WTB/9wBzaFfOHbYlnlALlomSamXCp2C4Nb63UXUyBQjzXSUhMIeQX9 SSQM/W1jjNb6O2s9/hyL+LMQeyIb0uKm9bOuu65ZFIlDyiBFmghpAiZyzoyGyJm6CjFCbrJg VF6jtXvSDQMakI+S+o2l4fnPSazjbxrEHQxVRme4ZVO+VFaLIh+t9OYImAaEHyMtAwC4fZ89 ZonUwzQMF/E9WhqhtvX7rMAPNKRt8p5YXF5+5F5wjjhiib6Lnho68ibr7YcjGMMIXF1bxR25 4FTTIfTp9NB6H4erNfVuANaibt5pGkkh30hZhgogdycxAhFTFsfA4du0MNVcYIIHtroWWY4r O6ic Message-ID: Date: Fri, 20 Apr 2018 10:40:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="g7WIuCJ8GCHVsDxUFnAOirvgKzT0SusCC" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --g7WIuCJ8GCHVsDxUFnAOirvgKzT0SusCC Content-Type: multipart/mixed; boundary="CSDfcgh7ju1z9O0lcbxXhL3gIwz9qL8gs"; protected-headers="v1" From: Stefan Fercot To: Edmundo Robles Cc: pgsql-general@lists.postgresql.org Message-ID: Subject: Re: Doubts about replication.. References: <31d48ed7-2c92-3776-625a-cb153885ac6d@a-kretschmer.de> In-Reply-To: --CSDfcgh7ju1z9O0lcbxXhL3gIwz9qL8gs Content-Type: multipart/alternative; boundary="------------A6AE5B0E12CB9145CEACC80E" Content-Language: fr-classic This is a multi-part message in MIME format. --------------A6AE5B0E12CB9145CEACC80E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, If you want to reduce the amount of data lost, you might want to consider another type of backup : https://www.postgresql.org/docs/current/static/continuous-archiving.html That awsome tool can also help you with it : https://pgbackrest.org/ On 04/19/2018 08:48 PM, Edmundo Robles wrote: > Yes, you are right, the replication is not=C2=A0 a backup ;)=C2=A0 , ac= tually=C2=A0 > =C2=A0i backup=C2=A0 database=C2=A0 daily at=C2=A0 3:00 am but if datab= ase crash,=C2=A0 the > amount=C2=A0 of data is=C2=A0 big!=C2=A0 that is the reason i want to=C2= =A0 replicate to > reduce=C2=A0 the data loss. By the way=C2=A0 a few days ago a job partn= er did a > delete with no where. > > On Thu, Apr 19, 2018 at 1:33 PM, Andreas Kretschmer > > wrote: > > > > Am 19.04.2018 um 19:57 schrieb Edmundo Robles: > > I will use replication as simple backup. > > > please keep in mind, replication is not a backup. All logical > errors on the master (delete from table and forgot the > where-condition) will replicated to the standby. > > > Andreas > > --=20 > 2ndQuadrant - The PostgreSQL Support Company. > www.2ndQuadrant.com > > > > > > --=20 > Kind regards, --=20 Stefan FERCOT http://dalibo.com - http://dalibo.org --------------A6AE5B0E12CB9145CEACC80E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi,

If you want to reduce the amount of data lost, you might want to consider another type of backup : https://www.postgresql.= org/docs/current/static/continuous-archiving.html

That awsome tool can also help you with it : https://pgbackrest.org/


On 04/19/2018 08:48 PM, Edmundo Robles= wrote:
Yes, you are right, the replication is not=C2=A0 a= backup ;)=C2=A0 , actually=C2=A0 =C2=A0i backup=C2=A0 database=C2= =A0 daily at=C2=A0 3:00 am but if database crash,=C2=A0 the amount=C2=A0 of data is=C2=A0 bi= g!=C2=A0 that is the reason i want to=C2=A0 replicate to reduce=C2=A0 the data los= s. By the way=C2=A0 a few days ago a job partner did a delete with no where= =2E

On Thu, Apr 19, 2018 at 1:33 PM, Andreas Kretschmer <andreas@a-kretschmer.de> wrote:


Am 19.04.2018 um 19:57 schrieb Edmundo Robles:
I will use replication as simple backup.

please keep in mind, replication is not a backup. All logical errors on the master (delete from table and forgot the where-condition) will replicated to the standby.


Andreas

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadr= ant.com





--


Kind regards,
--=20
Stefan FERCOT
http://dali=
bo.com - http://dalibo.org
--------------A6AE5B0E12CB9145CEACC80E-- --CSDfcgh7ju1z9O0lcbxXhL3gIwz9qL8gs-- --g7WIuCJ8GCHVsDxUFnAOirvgKzT0SusCC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEGqVD/TfbxT1NtG2cKv35I2qhWC8FAlrZp24ACgkQKv35I2qh WC8llwgAgkMzSKwNi7WgyZiPQny4pHyP4F0i7H1n9LQgwV6cgUF6uOPhewrRuRnz 7B/XD082/UTMTsLeIWVaZe3nCLCwZpPnPPOeB5OaMdxJIs2y28gBG964T3CTBPbN y3yuICrFzNHQmIQdYlMpazSnOyPSAqInNBeKf5XtaAaHh1SI6qB9tIKfnmN+d5RR 7TxnZVOFK/0tnCIY9VcWm2YviN4kap68SlbDKYRyqlW5RrdvZwH1JJgA9wbH0YI9 vpKDvugMIdOhWQl9Xg5ofkeQ+cNJPPyUZ/0pKd01uq3O4qUilYTXssxi7kdg6coA XoKAcnDwKu1Oi1eO44uPmB8bLCyjUw== =MmQP -----END PGP SIGNATURE----- --g7WIuCJ8GCHVsDxUFnAOirvgKzT0SusCC--