Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i4wUC-0004BL-1f for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 00:15:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i4wUA-0008DS-VM for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 00:15:50 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1i4wU9-00082n-8Y for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 00:15:50 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i4wU5-0006Tt-13 for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 00:15:48 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8DE7A931; Mon, 2 Sep 2019 20:15:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 02 Sep 2019 20:15:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=s aD337fxxaFk77qx9lZniGdduVq1MHwDifC8bIWvq24=; b=eEQiUpBMStBEUe4GA AvCmmX9n0KMl9Gm1iZtUH2IpU0iVB4KjVJHWwFrZnnDbIOlShJtmwCQ3oMmm779I VivzZB/Q7Z211zYYU6DrBib53Q089tVQoz0EERJ6B4yxrzAf1ljgD6UB2JkSZZ7k QBoOqWmzcEKRFf3Qvkk6Ye/5kTjMw9G1KijZ1WvaJeMJgB/l/aQGQ7VBBeGoYQJ/ hz1Vy5mK/gvJcp4kb5JbQ3CuojsBFsNV63b71Lt6oGWrcSIJJAaKv3kLCZiPO0k3 8km3dWrYt0qAru2IWBusn0xqXhBGpP0Dkm94pbA7/xewxE2uYdSR8OGdOAbNGabA p1sdQ== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=saD337fxxaFk77qx9lZniGdduVq1MHwDifC8bIWvq 24=; b=fJ46+tP7boqORZxf7dOb4eeBYT9+RW91SsN4NzjZxCkMW8JOQLXFXrGKl VvR+5Wz3E6vH+HBLCeP+oxgDZz9C9cNpIMwh6dl+8F31liqk5s5wJaFDhJqWOlvc XIW8L5uSXvh0+UGknCtJyTelqtpD0Vryd5yDYhKQLOAxwFEMOBXmNw6Ebuu+EN2V t2KLHt8edYIBLtRNgHYogBcUG9XucIVunLpAjqj/rtI0liY3qUnsM3ZvfK9XEyV9 0lILbDp7LD+BYFZY7rtyUN3ZzdNo9yD3xWlFVAmvmjgxzJXWffTN2RRcP1vVz8TC JcfH09kni1aM8gAsLd0j7z7L+wU9w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudejuddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 3C65AD6005A; Mon, 2 Sep 2019 20:15:40 -0400 (EDT) Subject: Re: Upgrade 96 -> 11 To: James Sewell Cc: "pgsql-generallists.postgresql.org" References: <5fcbcde1-8807-17ee-029f-c99f924e024e@aklaver.com> <423c7cba-b20d-1b3e-c662-be50fe2fe95a@aklaver.com> <71c0662a-e9d0-c4d6-4704-61d5ec1f37df@aklaver.com> From: Adrian Klaver Message-ID: <77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com> Date: Mon, 2 Sep 2019 17:15:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/2/19 4:57 PM, James Sewell wrote: > > > > I am going to assume then that it has to do with this: > "LINE 39:     "location_pt" "public"."geography"(Point,4283), " > > What is the above pointing to? > > > This needs the PostGIS types and tables to work - they don't exist as > they were not created with CREATE EXTENSION, but rather are to be > created later in the restore. > > > > > > >     2) "Both the versions have PostGIS 2.5.1 installed and working" > > > >     How do you know it is working on the 11 version? > > > > > > By version I mean 11 - I can init a new cluster and it’s fine > > > > The more I look at this it seems like: > > > > A) pg_upgrade somehow creates postgis without supporting tables > > So you see a CREATE EXTENSION postgis? > > Is there anything in the logs that pertains to the above? > > > Yes and no. Just the create extension. > > > > > B) while the tables would be created from the schema dump files, > they > > happen too late > > What happens if you use pg_dump from version 11 against the 9.6 cluster > with the -s and -p? > > Does it shows the schema creation in the order you need? > > > Yes. It's only in the binary_upgrade mode I see issues (because the > extension stuff isn't created with CREATE EXTENSION) > What is the pg_upgrade command you are using? -- Adrian Klaver adrian.klaver@aklaver.com