#4296 closed defect (fixed)
Use `server_version_num` instead of parsing version()
Reported by: | Algunenano | Owned by: | Algunenano |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.3.9 |
Component: | postgis | Version: | 2.3.x |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.
In 17178: