[postgis-tickets] [PostGIS] #2560: view xxx depends on function st_union(geometry)

PostGIS trac at osgeo.org
Sun Feb 23 06:01:15 PST 2014


#2560: view xxx depends on function st_union(geometry)
-----------------------------------+----------------------------------------
 Reporter:  strk                   |       Owner:  strk         
     Type:  defect                 |      Status:  new          
 Priority:  medium                 |   Milestone:  PostGIS 2.1.2
Component:  build/upgrade/install  |     Version:  2.1.x        
 Keywords:                         |  
-----------------------------------+----------------------------------------

Comment(by strk):

 Ok, I see the problem.
 Your 2.1.2dev--2.1.2devnext.sql script _assumes_ that aggregates are
 ALWAYS created, while now they are only created IF they need be. And
 that's intentional, because the subject of this bug is infact being unable
 to upgrade while having views defined taht _depend_ on those aggregates.

 So I think the actual fix would be dropping the assumption, which I belive
 is built into the call to SELECT
 postgis_extension_remove_objects('postgis', 'AGGREGATE');


 Similarly all other "drops" for extension should be made version-
 dependent.
 What's the rationale for extensions NOT using the same scripts used for
 extension-less upgrades ?

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