[postgis-tickets] [PostGIS] #5237: postgis_extensions_upgrade fails with ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification

PostGIS trac at osgeo.org
Wed Sep 14 00:28:30 PDT 2022


#5237: postgis_extensions_upgrade fails with ERROR: there is no unique or
exclusion constraint matching the ON CONFLICT specification
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.3.2
 Component:  postgis  |    Version:  3.3.x
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by strk):

 I think the explanation is that someone removed the primary key on the
 spatial_ref_sys table on some databases. Wheter or not it's up to us
 to re-create that index is debatable. The database is in unexpected
 conditions (read "broken") without that primary key. Maybe what we
 can do is print a friendly error message for the user recommending to
 repair the database in order to proceed with the upgrade
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5237#comment:8>
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