Opened 3 years ago
Last modified 14 months ago
#5092 new enhancement
Stop filling up the disk with upgrade scripts
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS PostgreSQL |
Component: | upgrade/soft | Version: | master |
Keywords: | Cc: |
Description
They are really too much:
[strk@c19:~] ls `pg_config --sharedir`/extension/postgis* | wc -l 1922
And mine is a relatively new machine.
This ticket is a placeholder to bring the idea of having a single, unique upgrade script (one per *target*) upstream to PostgreSQL.
We're effectively having such single file upgrade since forever (before EXTENSION even existed).
Starting with commit [cff01033637ddcf984d12edbbecc9f70b0e4de4e/git] (3.3.0dev) the postgis_extensions_upgrade()
effectively makes the ANY--<target>
extension file the ONLY file required for the upgrade.
The loader/postgis
script already did this as of commit [8ab82431e5b080ee0f65810afecd9028e2bc3744/git] (3.1).
We started installing that file with commit [04e8d00d8b55df69705c316fb2feecce23a29bfc/git] (2.5)
Change History (9)
comment:1 by , 3 years ago
Milestone: | → PostGIS PostgreSQL |
---|---|
Version: | → master |
comment:2 by , 3 years ago
comment:3 by , 3 years ago
@strk just added it to PostgreSQL commitfest and I have made myself a reviewer
https://commitfest.postgresql.org/38/3654/
It's too late for PG15, but we can shoot for PG16
comment:6 by , 23 months ago
I'd be happy to close this out once the install-extension-upgrades-from-known-versions
make target stops being run by default when install
is run …
comment:8 by , 17 months ago
New upstream commitfest item is in here: https://commitfest.postgresql.org/44/4489/
comment:9 by , 14 months ago
Component: | build/install → upgrade/soft |
---|
Proposal was sent to PostgreSQL to support wildcards on upgrade scripts: https://www.postgresql.org/message-id/YgakFklJyM5pNdt%2B%40c19
PostGIS Devel mailing list proposal: https://lists.osgeo.org/pipermail/postgis-devel/2022-February/029500.html