Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eekuE-0000zK-5e for pgsql-admin@arkaria.postgresql.org; Thu, 25 Jan 2018 17:01:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eekuD-0001Tz-FL for pgsql-admin@arkaria.postgresql.org; Thu, 25 Jan 2018 17:01:41 +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 1eekuC-0001Tq-TT for pgsql-admin@lists.postgresql.org; Thu, 25 Jan 2018 17:01:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eekuA-0006UB-6e for pgsql-admin@lists.postgresql.org; Thu, 25 Jan 2018 17:01:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E939C2140B; Thu, 25 Jan 2018 12:01:36 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 25 Jan 2018 12:01:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=wmb6qS fU44mxFRtCcKsX2RCR2H8jVab2jEOCOwtmWag=; b=mnsVXIpTYnsd4hwujAplQv irnCsVnSyMtqUWd3EnPZ2bNxHe4styL/MWOVp8TGvMwLI6Kaccjm+balbqDuzVHB d6hkBC4xr/S0X1GEnd74nlGIbeVZhYlWQeNZHddzjfYFi3m5EaPCncttE22jidSm HM9Q021XoohD3FVAW5t42qXOOxIjfXYyiIaakAmYOIZzqX6rtlU6hgRvIBMEHihm DJbxjmVG1l7gjno05Y7+VySD/yTF3UPZW4oeqOuhz8bEGFumXDHBD/yeqBlcRzqJ R0HygZzo+wDamxYfWjXQALWjl7TDC4a+Y4Qdxh6xLS8JLYe2RStg7Mc3E3lVRTSw == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id A46AA24776; Thu, 25 Jan 2018 12:01:36 -0500 (EST) Subject: Re: Upgrade and re-synchronization with logical replication (pglogical and PG 10) To: Chad Trabant References: <10358935-0D5B-4C94-AF02-D64B1A195442@iris.washington.edu> Cc: pgsql-admin@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 25 Jan 2018 12:01:36 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/24/18 21:06, Chad Trabant wrote: >> On Jan 23, 2018, at 9:36 AM, Peter Eisentraut wrote: >> >> On 1/22/18 01:53, Chad Trabant wrote: >>> 1) In my initial testing it seems that an upgrade via pg_upgrade does >>> not migrate logical replication slots or origins >>> (pg_replication_slots and pg_replication_origin). >> >> Correct. > > Thank you for confirming. I'm sure there is a good reason for this, can someone explain why (even if briefly)? pg_upgrade does not preserve WAL information such as LSNs between the old and new cluster, so it wouldn't know where the slots should start. Basically, the approach that pg_upgrade takes is incompatible with replication slots. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services