[postgis-tickets] [PostGIS] #2755: 4 regression failures for sfcgal
PostGIS
trac at osgeo.org
Tue Jun 24 00:17:19 PDT 2014
#2755: 4 regression failures for sfcgal
----------------------+-----------------------------------------------------
Reporter: robe | Owner: colivier
Type: defect | Status: reopened
Priority: blocker | Milestone: PostGIS 2.2.0
Component: sfcgal | Version: trunk
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment(by vmo):
Replying to [comment:6 pramsey]:
> You can't just toss r12350, it's necessary to support extension upgrade,
because during upgrade two libpostgis.so libraries are simultaneously
loaded and they will collide on the GUC variable and upgrade will halt
unless you check and avoid double-defining it.
I'm working on it, but as far as I can tell, the proposed solution does
not seem to work.
When changing postgis.backend, maybe because the custom variable is
already defined as a place holder, r13250 causes the assign hook
definition to be bypassed. As a result geos function are called instead of
sfcgal ones (some tests failures, like ST_Distance(geom, empty) show
that).
I asked on pg-hackers (http://postgresql.1045698.n5.nabble.com/modify-
custom-variables-td5808161.html) and I was advised to avoid loading the
old postgis.so before upgrade.
I tend to agree: if you skip the definition of the custom variable, the
assign hook will still point to the old version of the library, and we
will end-up calling sfcgal backend from the previous version of
postgis*.so
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2755#comment:7>
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