Re: pg_restore [archiver] file offset in dump file is too - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_restore [archiver] file offset in dump file is too
Date
Msg-id 200511022131.jA2LV1T14155@candle.pha.pa.us
Whole thread Raw
In response to Re: pg_restore [archiver] file offset in dump file is too  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pg_restore [archiver] file offset in dump file is too
List pgsql-hackers
Andrew Dunstan wrote:
> There is no fseeko in the Windows libraries, nor any provision in the 
> mingw headers that I can see for a 64 bit off_t. So we would need to 
> roll our own to some extent - I think we need more than just a bit of 
> configure cleverness.
> 
> However, there is a Windows library routine to do a 64bit seek and 
> return the file position, so we could fairly easily implement fseeko and 
> ftello based on that. See
> http://msdn.microsoft.com/library/en-us/vclib/html/_crt__lseek.2c_._lseeki64.asp

See src/port/fseeko.c for a version built on fsetpos().

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pg_restore [archiver] file offset in dump file is too
Next
From: Idar Tollefsen
Date:
Subject: Re: 8.1RC1 fails to build on OS X (10.4)