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 1finyv-0002Zj-OE for pgsql-general@arkaria.postgresql.org; Thu, 26 Jul 2018 21:39:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1finyt-0000mJ-6u for pgsql-general@arkaria.postgresql.org; Thu, 26 Jul 2018 21:39:31 +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 1finys-0000mC-76 for pgsql-general@lists.postgresql.org; Thu, 26 Jul 2018 21:39:30 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1finyo-00050H-6N for pgsql-general@lists.postgresql.org; Thu, 26 Jul 2018 21:39:29 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BFA4421990; Thu, 26 Jul 2018 17:39:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 26 Jul 2018 17:39:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=hKkGbrCMFJNtZGmnjmgklNPoHxKYU iMeYLcZCclyfAA=; b=d1rtpPbuU9TB0qI8iL+JJfLNDR8eO12fEC51ywSS01e24 AWt+p/TIt/X++GUUPinbk/HIARyzczjHzALU0CdPyQIQkU75KJ5JLvjseEibNRnI YPs6j094JhbmHr41lMZ9uQHSHM83KFzpMkgjvWCAaY3EOvDhaKojksldbjgR7Tbs HiWYKkDeAFfxifHz//8WGBQotTVF80FaVzoRCAWCEt/hDEwf6Fb42GT0cURBHNKW FuMycvrAfYrKNEzV1yQJBa6xBoOFum4EreN+0pOwJW6V21NTPZhSHuNj1DiIRWS1 e8SDpgleee9Q5uapFaT/B6V6s/b1EeRDqiBxRVB5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hKkGbr CMFJNtZGmnjmgklNPoHxKYUiMeYLcZCclyfAA=; b=MLyNMq178ay6eUyoxl1IXn RGgu6VNjy9MSohkl8Zmfksemx2iJU4tVe+H4IuXFtdb5MpbdeeTwcqQdgtMs5ZbA wcZwCFkv2LOzfu0jYSvMvAysA9wFX3c9lgzaHYQlNr/jTjjgWwwCM9kDtRTCo9Sy 2Y7Hr6e8G0wgF7GT/2pqIrXHFWp105DrzQ3WqqgVzp0znJP7rV2O4ghKh8ioqHtf qKN1PJ+oB7/PEukTX7jgiwZDX0Tz3fU+I0FOuim7QgJf0aXHwaqVbWyuoospZKzx bYiNmSAb+zM+LWNhOnMfE0zum8EgwEHfN3OiVhtORGvsLIKcqsIrdN77rc71h5vw == X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id C5FC910261; Thu, 26 Jul 2018 17:39:23 -0400 (EDT) Subject: Re: logical replication snapshots To: Dimitri Maziuk , 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> <00acc822-e5d6-b9ad-43a9-e989d8581ae7@bmrb.wisc.edu> From: Adrian Klaver Message-ID: <40f0b879-2b5b-05ad-57ba-3688510be87d@aklaver.com> Date: Thu, 26 Jul 2018 14:39:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <00acc822-e5d6-b9ad-43a9-e989d8581ae7@bmrb.wisc.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/26/2018 02:06 PM, Dimitri Maziuk wrote: > 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, all >>> tables are empty on the subscriber. >> >> 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. The thing that has me somewhat confused is: ERROR: permission denied for schema macromolecules I would thought the replication user could access that. Is there something special about that schema? Did the user role you set up for replication have the REPLICATION attribute or was it a superuser? > > ... 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. If I remember back correctly this is because the server chokes on the 13 million files in the ~/pg_logical/snapshot directly. I wonder what happens if you change(on test setup)?: wal_level = logical to wal_level = replica > > 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... > -- Adrian Klaver adrian.klaver@aklaver.com