pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Slavcho Trnkovski <strnkovski@gmail.com>
To: schneider@ardentperf.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: postgis after pg_upgrade
Date: Thu, 6 Dec 2018 07:30:18 -0800
Message-ID: <d485f3f3-6c17-36b2-cbf6-d8d7db68d852@aklaver.com> (raw)
In-Reply-To: <CACwHmfGbPsJJ1Tr=-vuxRKBsVqbSU78jV7wdp7g9ah+z-22vhg@mail.gmail.com>
References: <CACwHmfHTZGhM-dPXsyQs9vKPUbwTgbYa3GW3n=QP_3b55qvzbw@mail.gmail.com>
	<ebbc31f8-b29a-8efb-5516-ef9e774d9d2b@ardentperf.com>
	<CACwHmfGbPsJJ1Tr=-vuxRKBsVqbSU78jV7wdp7g9ah+z-22vhg@mail.gmail.com>

On 12/6/18 12:40 AM, Slavcho Trnkovski wrote:
> Hi,
> But my understanding is that this approach is used when upgrading PostGIS.

Which maybe necessary when upgrading the database:

http://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading

Which seems to be what is happening in your case, as before you 
reinstalled the extension you got(from OP):

select PostGIS_full_version();

                        postgis_full_version
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  POSTGIS="2.4.5 r16765" *PGSQL="94" (procs need upgrade for use with
"96") *GEOS="3.6.2-CAPI-1.10.2
4d2925d6" PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 1.11.4, released
2016/01/25" LIBXML="2.9.1" LIBJSON="0.11" RASTER
(1 row)



> I'm upgrading postgresql from 9.4 to 9.6 and PostGIS version remains the 
> same (2.4.5).
> If I execute:
>    drop extension postgis;
>    CREATE EXTENSION postgis SCHEMA postgis;
> select PostGIS_full_version();
>                                                                          
>          postgis_full_version
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>   POSTGIS="2.4.5 r16765" PGSQL="96" GEOS="3.6.2-CAPI-1.10.2 4d2925d6" 
> PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 1.11.4, released 
> 2016/01/25" LIBXML="2.9.1" LIBJSON="0.11" RASTER
> 
> everything looks OK. Is this wrong?
> 
> Regards,
> Slavcho
> 
> On Tue, Dec 4, 2018 at 7:41 PM Jeremy Schneider 
> <schneider@ardentperf.com <mailto:schneider@ardentperf.com>> wrote:
> 
>     On 11/30/18 05:11, Slavcho Trnkovski wrote:
>      > I have postgresql 9.4 with postgis extension installed (latest
>     version,
>      > 2.4.5). I upgraded postgresql from 9.4 to 9.6.
>      > After upgrading to 9.6 I get the following result
>      > from PostGIS_full_version()
>      >  select PostGIS_full_version();
>      >
>      >  ... (procs need upgrade for use with "96") ...
>      >
>      > Is there any way to resolve this besides recreating the extension?
> 
>     If I'm reading the postgis docs correctly, this message specifically
>     means that you must do a full dump/reload of postgis-enabled databases.
> 
>     http://postgis.net/docs/manual-2.4/postgis_installation.html#upgrading
> 
>      > If you can't find the postgis_upgrade*.sql specific for upgrading
>      > your version you are using a version too early for a soft upgrade
>      > and need to do a HARD UPGRADE.
>      >
>      > The PostGIS_Full_Version function should inform you about the need
>      > to run this kind of upgrade using a "procs need upgrade" message.
>      >
>      > By HARD UPGRADE we mean full dump/reload of postgis-enabled
>      > databases.
> 
>     -- 
>     http://about.me/jeremy_schneider
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (8+ messages)

Message-ID: <d485f3f3-6c17-36b2-cbf6-d8d7db68d852@aklaver.com>
Permalink:  ../d485f3f3-6c17-36b2-cbf6-d8d7db68d852@aklaver.com/
Also on:    postgresql.org/message-id/d485f3f3-6c17-36b2-cbf6-d8d7db68d852@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, strnkovski@gmail.com, schneider@ardentperf.com
  Subject: Re: postgis after pg_upgrade
  In-Reply-To: <d485f3f3-6c17-36b2-cbf6-d8d7db68d852@aklaver.com>
  References: <CACwHmfHTZGhM-dPXsyQs9vKPUbwTgbYa3GW3n=QP_3b55qvzbw@mail.gmail.com> <ebbc31f8-b29a-8efb-5516-ef9e774d9d2b@ardentperf.com> <CACwHmfGbPsJJ1Tr=-vuxRKBsVqbSU78jV7wdp7g9ah+z-22vhg@mail.gmail.com> <d485f3f3-6c17-36b2-cbf6-d8d7db68d852@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