[postgis-devel] [PostGIS] #1830: pgsql2shp fix for "XInvalid endian flag value encountered" on PostgreSQL 9.2

PostGIS trac at osgeo.org
Mon May 28 07:59:49 PDT 2012


#1830: pgsql2shp fix for "XInvalid endian flag value encountered" on PostgreSQL
9.2
----------------------------+-----------------------------------------------
  Reporter:  dfuhry2        |       Owner:  pramsey      
      Type:  defect         |      Status:  reopened     
  Priority:  high           |   Milestone:  PostGIS 2.0.1
 Component:  loader/dumper  |     Version:  2.0.x        
Resolution:                 |    Keywords:               
----------------------------+-----------------------------------------------

Comment(by dfuhry2):

 Unfortunately we can't directly condition the change on PQlibVersion()
 since it's only available since 9.1:
 http://www.postgresql.org/docs/9.1/static/libpq-misc.html
 Also unfortunately, the PG_VERSION and PG_VERSION_NUM constants match the
 server version (9.2 in my case), not the libpq version.
 I guess PQlibVersion() could be tested for in configure, that still
 wouldn't distinguish between users of 9.0's libpq and 8.4's. Not clear to
 me how to make that distinction.

 {{{
 if (PQlibVersion() < 90000)
 {
     ...
 }
 }}}

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