Re: Large file support available - Mailing list pgsql-hackers

From Mark Kirkwood
Subject Re: Large file support available
Date
Msg-id 3D671223.7020609@slingshot.co.nz
Whole thread Raw
In response to Re: Large file support available  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:

>OK, with no one replying to this, I will take it upon myself to resolve
>this.  According to the Mac OSX fseek() manual page:
>
>     The fgetpos(), fsetpos(), fseek(), ftell(), and rewind() functions
>     conform to ANSI X3.159-1989 (``ANSI C'').
>
>     The fseeko() and ftello() functions conform to Version 2 of the
>     Single UNIX Specification (``SUSv2'').
>  
>

I might be veering *slightly* off the topic here, but since I got bitten 
by this recently I thought I would mention it:

On Linux, and found that I needed

<#include asm/fcntl.h>
instead of
<#include fcntl.h>

when using lseek. I had expected defining _FILE_OFFSET_BITS=64 to sort 
this (which it did not).

I think that this will only be an issue if folk want relation files to 
be chunked at > 2G (or want to define LET_OS_MANAGE_FILES).

best wishes

Mark



pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: [GENERAL] PostgreSQL 7.2.2: Security Release
Next
From: Peter Eisentraut
Date:
Subject: Delayed...