Re: pg_restore [archiver] file offset in dump file is too

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <mha(at)sollentuna(dot)net>, Kevin(dot)Grittner(at)wicourts(dot)gov, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_restore [archiver] file offset in dump file is too
Date: 2005-11-02 21:26:09
Message-ID: 43692EF1.1060303@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

>Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>
>>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
>>
>>
>
>Is there any risk that the mingw libraries would fail when manipulating
>a file whose current offset exceeds 32 bits? I'm wondering if we'd have
>to roll our own stdio in toto, not just fseeko/ftello :-(
>
>
>
>

AFAIK all this is coming straight from the base Windows libraries. I
guess we'll have to test it when we get around to it.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-11-02 21:31:01 Re: pg_restore [archiver] file offset in dump file is too
Previous Message Robert Creager 2005-11-02 21:18:55 Re: Assert failure found in 8.1RC1