[postgis-devel] [PostGIS] #393: shp2pgsql returns "fseek(-xxx) failed on DBF file." for large (>2GB) DBF files

PostGIS trac at osgeo.org
Fri Jan 20 06:01:40 PST 2012


#393: shp2pgsql returns "fseek(-xxx) failed on DBF file." for large (>2GB) DBF
files
-----------------------------------------------+----------------------------
 Reporter:  maximeguillaud                     |       Owner:  pramsey      
     Type:  defect                             |      Status:  new          
 Priority:  medium                             |   Milestone:  PostGIS 2.0.0
Component:  loader/dumper                      |     Version:  1.5.X        
 Keywords:  shp2pgsql fseek failed large file  |  
-----------------------------------------------+----------------------------

Comment(by gdt):

 Please keep in mind that _FILE_OFFSET_BITS is nonportable; it isn't used
 on BSDs, where off_t is simply always int64_t.  But using off_t and lseeko
 instead of long seems entirely sensible.  So probably the
 -D_FILE_OFFSET_BITS=64 needs to be wrapped in a configure test to be added
 only on operating systems where it makes sense.

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