On Fri, Feb 16, 2007 at 02:09:41PM +0900, Yoshiyuki Asaba wrote:
> > > Does not compile on my MinGW - errors in the system headers (unistd.h,
> > > io.h) due to changing the argument format for chsize(). The change of
> > > off_t propagated into parts of the system headers, thus chaos was
> > > ensured.
> > >
> > > I still think we need to use a pgoff_t. Will look at combining these two
> > > approaches.
> > Here's a patch that tries this.
> > *needs more testing*. But built with this patch, I can dump and
> > restore a table at the end of a 10gb database without errors.
> I tried the attached patch. But I got the following error.
> pg_backup_archiver.o(.text+0x1fa4): In function `allocAH':
> undefined reference to `fseeko64'
> make: *** [pg_dump] Error 1
> $ uname -sr
> MINGW32_NT-5.1 1.0.10(0.46/3/2)
> Is MINGW version too old?
I think so. It seems this was added in version 1.24 of stdio.h in mingw
Could you try upgrading mingw and see if that helps? Or possibly
instlaling side-by-side a different version (if they even allow that)?
---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at