[postgis-devel] [PostGIS] #1518: Report SVN revision in PostGIS_Full_Version

PostGIS trac at osgeo.org
Tue Jan 31 19:19:35 PST 2012


#1518: Report SVN revision in PostGIS_Full_Version
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  enhancement    |      Status:  new          
 Priority:  medium         |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------
 It would be helpful if there was a way to find the exact PostGIS version,
 including the SVN revision it was built from, in SQL.
 PostGIS_Full_Version() reports "2.0.0SVN" or similar, but not the
 revision.

 Sometimes our application relies on a particular bug fix, which we know
 was made in a particular revision. If an earlier version of PostGIS is
 used it may run for hours before failing, so I'd like to check the version
 at the start and fail immediately if it's not right. I currently do this
 by testing for the bug directly, but that kind of check doesn't really
 belong in production code. Checking the version would be simpler and
 cleaner.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1518>
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-devel mailing list