You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use pgdbf tools to load dbf to pg,the command below:
#pgdbf xxx.dbf (the size of xxx.dbf is 3.1GB)
unable to open the DBF file:File too large
the limits size of dbf is ?
-------update----
I see the source code from pgdbf.c/pgdbf.h
pgdbf.c line321324
dbffile = fopen(dbffilename, "rb");
if(dbffile == NULL) {
exitwitherror("Unable to open the DBF file", 1);
pgdbf.h line243245
if(systemerror) {
perror(message);
}
an off_t is commonly 32 bits. To avoid conflicts with negative numbers, the largest offset that can be represented in
a 32-bit off_t variable is 2 gigabytes.
------update2---
maybe you can compile use -D _FILE_OFFSET_BITS=64 to fix it.
The text was updated successfully, but these errors were encountered:
Hi,
I use pgdbf tools to load dbf to pg,the command below:
#pgdbf xxx.dbf (the size of xxx.dbf is 3.1GB)
unable to open the DBF file:File too large
the limits size of dbf is ?
-------update----
I see the source code from pgdbf.c/pgdbf.h
pgdbf.c line321
324245dbffile = fopen(dbffilename, "rb");
if(dbffile == NULL) {
exitwitherror("Unable to open the DBF file", 1);
pgdbf.h line243
if(systemerror) {
perror(message);
}
an off_t is commonly 32 bits. To avoid conflicts with negative numbers, the largest offset that can be represented in
a 32-bit off_t variable is 2 gigabytes.
------update2---
maybe you can compile use -D _FILE_OFFSET_BITS=64 to fix it.
The text was updated successfully, but these errors were encountered: