pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgis after pg_upgrade
8+ messages / 5 participants
[nested] [flat]

* postgis after pg_upgrade
@ 2018-11-30 13:11 Slavcho Trnkovski <strnkovski@gmail.com>
  2018-11-30 17:01 ` Re: postgis after pg_upgrade Paul Ramsey <pramsey@cleverelephant.ca>
  2018-12-04 18:41 ` Re: postgis after pg_upgrade Jeremy Schneider <schneider@ardentperf.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Slavcho Trnkovski @ 2018-11-30 13:11 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi,

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();

                       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)

Is there any way to resolve this besides recreating the extension?

Regards,
Slavcho

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
@ 2018-11-30 17:01 ` Paul Ramsey <pramsey@cleverelephant.ca>
  2018-12-01 16:56   ` Re: postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Paul Ramsey @ 2018-11-30 17:01 UTC (permalink / raw)
  To: Slavcho Trnkovski <strnkovski@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

If you install the new version, and then use ‘ALTER EXTENSION UPDATE’ to update the SQL-side bindings, everything should improve.

> On Nov 30, 2018, at 5:11 AM, Slavcho Trnkovski <strnkovski@gmail.com> wrote:
> 
> Hi,
> 
> 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();
>                                                                                                    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)
> 
> Is there any way to resolve this besides recreating the extension?
> 
> Regards,
> Slavcho

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  2018-11-30 17:01 ` Re: postgis after pg_upgrade Paul Ramsey <pramsey@cleverelephant.ca>
@ 2018-12-01 16:56   ` Slavcho Trnkovski <strnkovski@gmail.com>
  2018-12-03 14:53     ` Re: postgis after pg_upgrade Rene Romero Benavides <rene.romero.b@gmail.com>
  2018-12-03 14:58     ` Re: postgis after pg_upgrade Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Slavcho Trnkovski @ 2018-12-01 16:56 UTC (permalink / raw)
  To: pramsey@cleverelephant.ca; +Cc: pgsql-general@lists.postgresql.org

Hi,

This will not resolve the issue I have because extension is already to the
latest version, but it is using postgres 9.4 and it should use 9.6.

Regards,
Slavcho

On Fri, Nov 30, 2018 at 6:01 PM Paul Ramsey <pramsey@cleverelephant.ca>
wrote:

> If you install the new version, and then use ‘ALTER EXTENSION UPDATE’ to
> update the SQL-side bindings, everything should improve.
>
> On Nov 30, 2018, at 5:11 AM, Slavcho Trnkovski <strnkovski@gmail.com>
> wrote:
>
> Hi,
>
> 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();
>
>                          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)
>
> Is there any way to resolve this besides recreating the extension?
>
> Regards,
> Slavcho
>
>
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  2018-11-30 17:01 ` Re: postgis after pg_upgrade Paul Ramsey <pramsey@cleverelephant.ca>
  2018-12-01 16:56   ` Re: postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
@ 2018-12-03 14:53     ` Rene Romero Benavides <rene.romero.b@gmail.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Rene Romero Benavides @ 2018-12-03 14:53 UTC (permalink / raw)
  To: strnkovski@gmail.com; +Cc: pramsey@cleverelephant.ca; pgsql-general <pgsql-general@lists.postgresql.org>

Are the postgis functions usable? do they currently work ? any error
messages in the database server logs ? have you installed the postgis
binaries for postgres 9.6? if you follow the given advise by Paul Ramsey,
what happens?

Am So., 2. Dez. 2018 um 14:24 Uhr schrieb Slavcho Trnkovski <
strnkovski@gmail.com>:

> Hi,
>
> This will not resolve the issue I have because extension is already to the
> latest version, but it is using postgres 9.4 and it should use 9.6.
>
> Regards,
> Slavcho
>
> On Fri, Nov 30, 2018 at 6:01 PM Paul Ramsey <pramsey@cleverelephant.ca>
> wrote:
>
>> If you install the new version, and then use ‘ALTER EXTENSION UPDATE’ to
>> update the SQL-side bindings, everything should improve.
>>
>> On Nov 30, 2018, at 5:11 AM, Slavcho Trnkovski <strnkovski@gmail.com>
>> wrote:
>>
>> Hi,
>>
>> 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();
>>
>>                          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)
>>
>> Is there any way to resolve this besides recreating the extension?
>>
>> Regards,
>> Slavcho
>>
>>
>>

-- 
El genio es 1% inspiración y 99% transpiración.
Thomas Alva Edison
http://pglearn.blogspot.mx/

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  2018-11-30 17:01 ` Re: postgis after pg_upgrade Paul Ramsey <pramsey@cleverelephant.ca>
  2018-12-01 16:56   ` Re: postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
@ 2018-12-03 14:58     ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Adrian Klaver @ 2018-12-03 14:58 UTC (permalink / raw)
  To: Slavcho Trnkovski <strnkovski@gmail.com>; pramsey@cleverelephant.ca; +Cc: pgsql-general@lists.postgresql.org

On 12/1/18 8:56 AM, Slavcho Trnkovski wrote:
> Hi,
> 
> This will not resolve the issue I have because extension is already to 
> the latest version, but it is using postgres 9.4 and it should use 9.6.

Well according to below:

POSTGIS="2.4.5 r16765"

According to this:

http://postgis.net/source/

postgis-2.4.6.tar.gz

So I am thinking it is not at the latest version.


> 
> Regards,
> Slavcho
> 
> On Fri, Nov 30, 2018 at 6:01 PM Paul Ramsey <pramsey@cleverelephant.ca 
> <mailto:pramsey@cleverelephant.ca>> wrote:
> 
>     If you install the new version, and then use ‘ALTER EXTENSION
>     UPDATE’ to update the SQL-side bindings, everything should improve.
> 
>>     On Nov 30, 2018, at 5:11 AM, Slavcho Trnkovski
>>     <strnkovski@gmail.com <mailto:strnkovski@gmail.com>> wrote:
>>
>>     Hi,
>>
>>     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();
>>                                                                      
>>                                      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)
>>
>>     Is there any way to resolve this besides recreating the extension?
>>
>>     Regards,
>>     Slavcho
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
@ 2018-12-04 18:41 ` Jeremy Schneider <schneider@ardentperf.com>
  2018-12-06 08:40   ` Re: postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Jeremy Schneider @ 2018-12-04 18:41 UTC (permalink / raw)
  To: Slavcho Trnkovski <strnkovski@gmail.com>; pgsql-general@lists.postgresql.org

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




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  2018-12-04 18:41 ` Re: postgis after pg_upgrade Jeremy Schneider <schneider@ardentperf.com>
@ 2018-12-06 08:40   ` Slavcho Trnkovski <strnkovski@gmail.com>
  2018-12-06 15:30     ` Re: postgis after pg_upgrade Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Slavcho Trnkovski @ 2018-12-06 08:40 UTC (permalink / raw)
  To: schneider@ardentperf.com; +Cc: pgsql-general@lists.postgresql.org

Hi,
But my understanding is that this approach is used when upgrading PostGIS.
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>
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
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: postgis after pg_upgrade
  2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
  2018-12-04 18:41 ` Re: postgis after pg_upgrade Jeremy Schneider <schneider@ardentperf.com>
  2018-12-06 08:40   ` Re: postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
@ 2018-12-06 15:30     ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Adrian Klaver @ 2018-12-06 15:30 UTC (permalink / raw)
  To: Slavcho Trnkovski <strnkovski@gmail.com>; schneider@ardentperf.com; +Cc: pgsql-general@lists.postgresql.org

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




^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2018-12-06 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30 13:11 postgis after pg_upgrade Slavcho Trnkovski <strnkovski@gmail.com>
2018-11-30 17:01 ` Paul Ramsey <pramsey@cleverelephant.ca>
2018-12-01 16:56   ` Slavcho Trnkovski <strnkovski@gmail.com>
2018-12-03 14:53     ` Rene Romero Benavides <rene.romero.b@gmail.com>
2018-12-03 14:58     ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-12-04 18:41 ` Jeremy Schneider <schneider@ardentperf.com>
2018-12-06 08:40   ` Slavcho Trnkovski <strnkovski@gmail.com>
2018-12-06 15:30     ` Adrian Klaver <adrian.klaver@aklaver.com>

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