[postgis-tickets] [PostGIS] #2503: ERROR: table "topology" is not a member of the extension being created

PostGIS trac at osgeo.org
Wed Nov 6 20:35:59 PST 2013


#2503: ERROR:  table "topology" is not a member of the extension being created
------------------------------------+---------------------------------------
  Reporter:  strk                   |       Owner:  robe         
      Type:  defect                 |      Status:  closed       
  Priority:  medium                 |   Milestone:  PostGIS 2.1.1
 Component:  build/upgrade/install  |     Version:  2.1.x        
Resolution:  invalid                |    Keywords:  extension    
------------------------------------+---------------------------------------
Changes (by robe):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 strk,

 I'm going to dismiss this as wontfix.  I just realized now the reason you
 got "topology" is not a member of extension is valid and expected.

 In the above as you said you are not installing from unpackaged at all,
 you are trying to install postgis anew and postgis_topology anew and there
 is no way for the extension model to know you already have postgis
 installed.

 So the error you get


 {{{
 "ERROR: table "topology" is not a member of the extension being created "
 }}}


 means you are trying to install topology and it is failing at packaging it
 already exists as not part of package.

 The correct steps are


 {{{
 CREATE EXTENSION postgis FROM unpackaged version '2.0.4';
 CREATE EXTENSION postgis_topology FROM unpackaged version '2.0.4';
 ALTER EXTENSION postgis UPDATE TO "2.1.0";
 ALTER EXTENSION postgis_topology UPDATE TO "2.1.0";
 }}}


 and that works for me.  I will say that we could have documented the
 behavior better and there is an issue with me dropping the postgis
 extension without doing a drop cascade.  I think that issue though is
 because of wholes in my unpackaged script which should be fixed by your
 updated one.

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