Opened 6 years ago
Closed 6 years ago
#4196 closed defect (fixed)
postgis_extensions_upgrade you package any unpackaged postgis included extensions
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
Per strk's suggestion,
If postgis_extensions_upgrade finds any extensions included as part of PostGIS unpackaged it should package them.
Right now it only does it for postgis_raster
So that would be
postgis postgis_topology postgis_sfcgal postgis_tiger_geocoder
I'm leaving address_standardizer out since it was never allowed to install without extensions and doesn't depend on postgis.
Change History (6)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
I've a working version, running final tests
comment:4 by , 6 years ago
The status of extension of postgis is reported by postgis_full_version
, but when the extension was just re-packaged by postgis_extensions_upgrade
such status changed within the same transaction, so is not visible by the function. May I suggest we _stop_ reporting full version from within the function ?
comment:5 by , 6 years ago
Another reason why running postgis_full_version()
by the end of postgis_extensions_upgrade()
fails is that re-pointing scripts to a newer SO file it will take a new LOAD for the new lib_versions() to show up, often resulting in a misleading WARNING about procs needing upgrade...
This one may possibly be fixed by issuing an explicit LOAD
, but the other issue ([EXTENSION]
label being wrong) isn't easy to fix. I would just print a generic text or even nothing
comment:6 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Regina I'm closing this ticket because is completed as far as I can tell, but I still think postgis_extensions_upgrade
should _not_ return postgis_full_version, because it is giving the _wrong_ information by doing it. Would be worth another ticket but I'm also going to sleep right now :)
How do we tell if "tiger_geocoder" exists as unpackaged, in a database ?