Re: [PATCHES] Fix for large file support

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [PATCHES] Fix for large file support
Date: 2007-04-06 21:29:55
Message-ID: 4616BBD3.3020300@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> [ redirecting to -hackers for wider comment ]
>
> Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
>> Tom Lane wrote:
>> LET_OS_MANAGE_FILESIZE is good way. I think one problem of this option I
>> fixed. It is size of offset. I went thru the code and did not see any
>> other problem there. However, how you mentioned it need more testing. I
>> going to take server with large disk array and I will test it.
>
>> I would like to add --enable-largefile switch to configure file to
>> enable access to wide group of users. What you think about it?
>
> Yeah, I was going to suggest the same thing --- but not with that switch
> name. We already use enable/disable-largefile to control whether 64-bit
> file access is built at all (this mostly affects pg_dump at the moment).

hmm :( It looks that ./configure largefile detection does not work on
Solaris.

> I think the clearest way might be to flip the sense of the variable.
> I never found "LET_OS_MANAGE_FILESIZE" to be a good name anyway. I'd
> suggest "USE_SEGMENTED_FILES", which defaults to "on", and you can
> turn it off via --disable-segmented-files if configure confirms your
> OS has largefile support (thus you could not specify both this and
> --disable-largefile).

It sounds good. There is one think for clarification (for the present).
How to handle buffile? It does not currently support non segmented
files. I suggest to use same switch to enable/disable segments there.

Zdenek

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ottó Havasvölgyi 2007-04-06 22:01:30 Eliminating unnecessary left joins
Previous Message Magnus Hagander 2007-04-06 20:55:21 Re: Fate of pgsnmpd

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-04-06 22:35:23 Re: index support is NULL
Previous Message Simon Riggs 2007-04-06 19:26:54 Re: Auto Partitioning