pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: James Sewell <james.sewell@jirotech.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Upgrade 96 -> 11
Date: Mon, 2 Sep 2019 17:15:39 -0700
Message-ID: <77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com> (raw)
In-Reply-To: <CAANVwEvJUii=L_KOTARqt9BKcFoY2TXsghEP4qonTi7+Qd00fw@mail.gmail.com>
References: <CAANVwEtAAN=1gY+QUVidpcO_mr87kne8=ovQciKRjxxwV7EEjg@mail.gmail.com>
	<5fcbcde1-8807-17ee-029f-c99f924e024e@aklaver.com>
	<CAANVwEuMsgNo2Ck8NWN4Q4vFk11tBYtNz4BBk82+YpguY1p1-A@mail.gmail.com>
	<423c7cba-b20d-1b3e-c662-be50fe2fe95a@aklaver.com>
	<CAANVwEtj+v3OBt3PPniA2L-1c3MEo4rfM2cRukpZF7GFriX9Hw@mail.gmail.com>
	<71c0662a-e9d0-c4d6-4704-61d5ec1f37df@aklaver.com>
	<CAANVwEs+H2Po3xArSLzLUiFWn4FbTqS5U0xv5KLyu7m3XOG5Tw@mail.gmail.com>
	<ba89d093-8017-3819-605b-38dd55ddb493@aklaver.com>
	<CAANVwEvJUii=L_KOTARqt9BKcFoY2TXsghEP4qonTi7+Qd00fw@mail.gmail.com>

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





view thread (16+ messages)  latest in thread

Message-ID: <77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com>
Permalink:  ../77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com/
Also on:    postgresql.org/message-id/77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, james.sewell@jirotech.com
  Subject: Re: Upgrade 96 -> 11
  In-Reply-To: <77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com>
  References: <CAANVwEtAAN=1gY+QUVidpcO_mr87kne8=ovQciKRjxxwV7EEjg@mail.gmail.com> <5fcbcde1-8807-17ee-029f-c99f924e024e@aklaver.com> <CAANVwEuMsgNo2Ck8NWN4Q4vFk11tBYtNz4BBk82+YpguY1p1-A@mail.gmail.com> <423c7cba-b20d-1b3e-c662-be50fe2fe95a@aklaver.com> <CAANVwEtj+v3OBt3PPniA2L-1c3MEo4rfM2cRukpZF7GFriX9Hw@mail.gmail.com> <71c0662a-e9d0-c4d6-4704-61d5ec1f37df@aklaver.com> <CAANVwEs+H2Po3xArSLzLUiFWn4FbTqS5U0xv5KLyu7m3XOG5Tw@mail.gmail.com> <ba89d093-8017-3819-605b-38dd55ddb493@aklaver.com> <CAANVwEvJUii=L_KOTARqt9BKcFoY2TXsghEP4qonTi7+Qd00fw@mail.gmail.com> <77f0cd56-c500-eb2a-40b7-22c2d27c83d2@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox