Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1finSp-0000nu-Cm for pgsql-general@arkaria.postgresql.org; Thu, 26 Jul 2018 21:06:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1finSn-0003Oi-Jp for pgsql-general@arkaria.postgresql.org; Thu, 26 Jul 2018 21:06:21 +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.89) (envelope-from ) id 1finSn-0003Ob-3C for pgsql-general@lists.postgresql.org; Thu, 26 Jul 2018 21:06:21 +0000 Received: from cowfish.bmrb.wisc.edu ([144.92.167.220] helo=mail.bmrb.wisc.edu) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1finSf-0001lb-6I for pgsql-general@lists.postgresql.org; Thu, 26 Jul 2018 21:06:19 +0000 Received: from perch.bmrb.wisc.edu (perch.bmrb.wisc.edu [144.92.167.190]) by mail.bmrb.wisc.edu (Postfix) with ESMTP id 77C5EFA08EB for ; Thu, 26 Jul 2018 16:06:12 -0500 (CDT) Subject: Re: logical replication snapshots To: pgsql-general@lists.postgresql.org References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql> <20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de> <04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu> <20180725152827.g22qmue3wgycifjh@alap3.anarazel.de> <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu> <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com> <20180726005706.gzinfqg7mjfnsf6g@alap3.anarazel.de> <10933bb0-5a3b-4ed2-fc6c-2a712510ef9b@aklaver.com> From: Dimitri Maziuk Openpgp: preference=signencrypt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YFR8wgV26TocuddCu6rzct0pHCYpa8Ujm0sW4LAu k84ln4Lxcn8p7Y/xUHw9qrsntMJGBBgRAgAGBQI+dnJlAAoJEMcxvLbapG24fOMAnRMAhg3z HaarosuhF9IDppY1BvFXAJ9MVzE3VVB7+y+DcN9igPol93ywmA== Organization: BMRB Message-ID: <00acc822-e5d6-b9ad-43a9-e989d8581ae7@bmrb.wisc.edu> Date: Thu, 26 Jul 2018 16:06:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <10933bb0-5a3b-4ed2-fc6c-2a712510ef9b@aklaver.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dLtaHjcXrV5okIZMEqwYHYsf4d6FuZksB" 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) --dLtaHjcXrV5okIZMEqwYHYsf4d6FuZksB Content-Type: multipart/mixed; boundary="Z0xuqik7hXmCm2sOLYdIguxVHeIuOauUX"; protected-headers="v1" From: Dimitri Maziuk To: pgsql-general@lists.postgresql.org Message-ID: <00acc822-e5d6-b9ad-43a9-e989d8581ae7@bmrb.wisc.edu> Subject: Re: logical replication snapshots References: <20180724172115.ztthbxmfgucnuuq3@alvherre.pgsql> <20180724184337.k6nq7k3cq7xoorjn@alap3.anarazel.de> <04dcfd2d-6201-09e7-4209-9894d669f694@bmrb.wisc.edu> <20180725152827.g22qmue3wgycifjh@alap3.anarazel.de> <9b9a72f4-44c8-5e78-8814-fdc39ca3a3ad@bmrb.wisc.edu> <1c539619-7b72-3669-81cd-2a55352b1008@aklaver.com> <20180726005706.gzinfqg7mjfnsf6g@alap3.anarazel.de> <10933bb0-5a3b-4ed2-fc6c-2a712510ef9b@aklaver.com> In-Reply-To: <10933bb0-5a3b-4ed2-fc6c-2a712510ef9b@aklaver.com> --Z0xuqik7hXmCm2sOLYdIguxVHeIuOauUX Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 07/26/2018 02:54 PM, Adrian Klaver wrote: > On 07/26/2018 10:54 AM, Dimitri Maziuk wrote: >> I'm not sure what happened, I remember the initial sync of that >> particular schema failing on one table only, but looking at it now, al= l >> tables are empty on the subscriber. >=20 > To me that indicates all the syncs failed. Yeah, well... the error message said one table failed and I went off to find out why (a co-worker added a column behind everyone's back) and never checked 'count(*)' on the other tables. =2E.. deleting files in ~snapshots > Again I don't know the answer to this. Are you trying this on a test > setup or production one? I could fire up another instance on a different port off the now-broken $PGDATA easily enough and test. However if whatever uses those files needs to start from the very first file and "replay" them in sequence, that won't work. The files are named like 19_E6942440.snap which presumably corresponds to "LOG: logical decoding found consistent point at 19/E6942440" and they seem to get progressively larger. That suggest that maybe just one (the newest one) could be good enough... --=20 Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu --Z0xuqik7hXmCm2sOLYdIguxVHeIuOauUX-- --dLtaHjcXrV5okIZMEqwYHYsf4d6FuZksB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iD8DBQFbWjfExzG8ttqkbbgRAu1MAKClf8A/Y0o4Wtr1KCX1asgX7MVCbACeNg8K OAJS/GEzpm+1XhwAFeLWukY= =D0Zi -----END PGP SIGNATURE----- --dLtaHjcXrV5okIZMEqwYHYsf4d6FuZksB--