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

PostGIS trac at osgeo.org
Tue Jan 24 20:37:27 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 dfuhry2):

 Last line of OSX output got truncated, here it is again:
 {{{
 $ uname -a && cat sizeof_types.c && gcc sizeof_types.c && ./a.out
 Darwin laptop 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT
 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
 #include <stdio.h>
 int main(int argc, char **argv) { printf("sizeof(off_t): %lu,
 sizeof(unsigned long): %lu, sizeof(int): %lu\n", sizeof(off_t),
 sizeof(unsigned long), sizeof(int)); }
 sizeof(off_t): 8, sizeof(unsigned long): 8, sizeof(int): 4
 }}}

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