[postgis-tickets] [PostGIS] #5194: SELECT postgis_extensions_upgrade() fails with pgextwlist

PostGIS trac at osgeo.org
Fri Aug 5 11:34:40 PDT 2022


#5194: SELECT postgis_extensions_upgrade() fails with pgextwlist
------------------------------------+---------------------------
  Reporter:  robe                   |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  blocker                |  Milestone:  PostGIS 3.3.0
 Component:  build/upgrade/install  |    Version:  master
Resolution:                         |   Keywords:
------------------------------------+---------------------------
Comment (by robe):

 Replying to [comment:9 robe]:
 > Replying to [comment:8 strk]:
 > > I'm working on an alternative setup in which rather than messing the
 catalog tables to set our version to 'ANY' we install 0-bytes upgrade
 paths from any supported version to `ANY`, which does the SAME thing as
 the catalog update but using `ALTER EXTENSION UPDATE` instead of `UPDATE
 pg_extension`. It will still be good to try the direct catalog update in
 case those `<version>--ANY` upgrade files are missing for any reason
 (package managers end up dropping them or users want to avoid having all
 those files around). The work in progress is in an `upgrade-paths` branch
 in official repository
 >
 > Doesn't that still suffer from the issue of, if a user uninstalls a
 version before they upgrade, they are missing that
 >
 > <my current version>--ANY.sql
 >
 > script and since the new install won't provide that, they are still
 stuck? or is that where your make target comes into play, to install these
 missing files?

 A further note -- remember when people are doing pg_upgrade, they have
 only the newest version of PostGIS installed in their new cluster, how are
 they going to upgrade with this solution?

 Please can you do what I said.  Keep the catalog update, it's still very
 useful for dev upgrades and for users, who build their own they can delete
 all those files.  Come 3.4.0 we can refine this more.

 If you are not going to do it, then I have to do it myself, and you are
 more familiar with the code.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5194#comment:12>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list