[postgis-tickets] [PostGIS] #4296: Use `server_version_num` instead of parsing version()

PostGIS trac at osgeo.org
Mon Jan 14 05:44:31 PST 2019


#4296: Use `server_version_num` instead of parsing version()
------------------------+---------------------------
 Reporter:  Algunenano  |      Owner:  Algunenano
     Type:  defect      |     Status:  assigned
 Priority:  medium      |  Milestone:  PostGIS 2.3.9
Component:  postgis     |    Version:  2.3.x
 Keywords:              |
------------------------+---------------------------
 Some PostgreSQL forks (e.g. `EnterpriseDB`) modify the version() output so
 matching `PostgreSQL ([0-9\.]+)` doesn't work. This affects
 `postgis_extension_remove_objects` and `_postgis_pgsql_version` functions.

 Using `SELECT current_setting('server_version_num')` should be equivalent
 and clearer.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4296>
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