Opened 9 years ago
Last modified 21 months ago
#3373 new enhancement
ALTER DOMAIN missing from topology_upgrade
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS Fund Me |
Component: | topology | Version: | master |
Keywords: | upgrade | Cc: |
Description (last modified by )
I just noticed that the ALTER DOMAIN statements in topology.sql.in (meant to do upgrades) are not being present in the topology_upgrade.sql script, meaning domain constraints are not properly upgraded.
Changing to an enhancement request.
Change History (11)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Ok one reason to strip the ALTER is that some of the ALTERs in there are for adding constraints, and fail if the constraint already exists. I guess the topology script could be changed to account for that, or otherwise it would be impossible for an upgrade to add or drop a constraint…
DROP .. IF EXISTS .. is only available starting with PostgreSQL 9.2 though
comment:3 by , 9 years ago
Description: | modified (diff) |
---|---|
Milestone: | PostGIS 2.2.1 → PostGIS 2.3.0 |
Type: | defect → enhancement |
Version: | 2.2.x → trunk |
I guess it is time to generate the topology upgrade via our postgis_proc_upgrade.pl, and add there logic to handle changes in constraints set attached to domains.
comment:5 by , 8 years ago
Milestone: | PostGIS 2.3.0 → PostGIS 2.4.0 |
---|
comment:6 by , 7 years ago
Milestone: | PostGIS 2.4.0 → PostGIS 2.5.0 |
---|
comment:7 by , 6 years ago
Milestone: | PostGIS 2.5.0 → PostGIS 3.0.0 |
---|
comment:8 by , 5 years ago
Milestone: | PostGIS 3.0.0 → PostGIS 3.1.0 |
---|
comment:9 by , 4 years ago
Milestone: | PostGIS 3.1.0 → PostGIS Fund Me |
---|
comment:11 by , 21 months ago
The topology_upgrade.sql script is now handled by create_upgrade.pl
utility.
The utility still does not do DOMAIN so this issue is still valid
I see ALTER lines are explicitly removed from the SQL file for the purpose of creating the upgrade script, but dont' understand why. Digging back in history I found r8157 being the commit that introduced the rule to create the upgrade script, by Regina in November 2011.
Regina, where did you copy that from ? Why an ALTER is also condidered something that cannot be present in an upgrade ? The comment above that snippet says: