[postgis-tickets] [PostGIS] #2510: Remove postgis_major_version_check from postgis_upgrade_20_21.sql

PostGIS trac at osgeo.org
Sun Oct 20 03:16:22 PDT 2013


#2510: Remove postgis_major_version_check from postgis_upgrade_20_21.sql
----------------------+-----------------------------------------------------
 Reporter:  pramsey   |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  critical  |   Milestone:  PostGIS 2.1.1
Component:  postgis   |     Version:  2.1.x        
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by strk):

 The idea is to avoid misuse of upgrade scripts. The function could maybe
 be updated to only query for the sql-implemented version of the function,
 or to react to exceptions. But I think it is nice to have some safety net.
 If extensions do this by themselves then fine, but not I think it's less
 safe with extensions: try {{{ CREATE EXTENSION POSTGIS VERSION '2.1.0'
 FROM unpackaged }}} while having 2.0.0 installed and I think you end up
 with a mess.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2510#comment:1>
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