Re: Fix for large file support - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: Fix for large file support
Date
Msg-id 46165751.2090009@dunslane.net
Whole thread Raw
In response to Fix for large file support  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: Fix for large file support
List pgsql-patches

Zdenek Kotala wrote:
> Current version of postgres support only 1GB chunks. This limit is
> defined in the pg_config_manual.h header file. However this setting
> allows to have maximal 2GB chunks. Main problem is that md storage
> manager and buffile use "long" data type (32bits) for offset instead
> "off_t" defined in <sys/types.h>.
>
> off_t is 32bits long on 32bits OS and 64bits long on 64bits OS or when
> application is compiled with large file support.
>
> Attached patch allow to setup bigger chunks than 4GB on OS with large
> file support.
>
> I tested it on 7GB table and it works.
>
>
>

What does it actually buy us, though? Does it mean the maximum field
size will grow beyond 1Gb? Or give better performance?

cheers

andrew

pgsql-patches by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Optimized pgbench for 8.3
Next
From: Zdenek Kotala
Date:
Subject: Re: Fix for large file support