[postgis-tickets] [PostGIS] #3975: ST_Transform references spatial_ref_sys without schema

PostGIS trac at osgeo.org
Thu Jan 11 08:46:46 PST 2018


#3975: ST_Transform references spatial_ref_sys without schema
-------------------------+---------------------------
  Reporter:  javitonino  |      Owner:  pramsey
      Type:  defect      |     Status:  new
  Priority:  medium      |  Milestone:  PostGIS 2.4.3
 Component:  postgis     |    Version:  2.4.x
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by pramsey):

 Fix 3:

 * From my colleague @javitonino, we can just add `SET SEARCH_PATH =
 @extschema@, pg_catalog` in the function definition itself.  As the manual
 for https://www.postgresql.org/docs/9.5/static/sql-createfunction.html
 create function notes, we can add `SET` clauses there.

 Unless someone has a screaming reason why this is not right, I think
 `st_transform` and `postgis_transform_geometry` can be upgraded with this
 small fix, and that should probably be backported as well, so other fresh
 installs get the right schema qualifications right up fron..

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3975#comment:3>
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