From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-sql@hub.org
Subject: Re: [SQL] So what happens at 2GB?
Date: Sun, 14 Mar 1999 12:48:19 -0500
Message-ID: <29692.921433699@sss.pgh.pa.us> (raw)
In-Reply-To: <199903140400.XAA11118@hub.org>
: "Brett W. McCoy" <bmccoy@lan2wan.com>
> On Sat, 13 Mar 1999, Karl Denninger wrote:
>>>>>> No. It works properly. I have had tables exceeding 10GB.
>>>>
>>>> How does it get past an operating system limitation on file size?
>>
>> There isn't one on FreeBSD, but Postgres doesn't seem to know that.
>> Instead, it breaks the table up into 2G-sized file chunks.
>
> It may do that for performance reasons, I would guess, or for
> compatibility with other operating systems that have the limitation
Precisely.
There was in fact a bug report against 6.4, that the feature failed to
work correctly on some OS's because the split point was *exactly* 2Gb;
apparently what works on these platforms is files less than 2Gb, not
files less-than-or-equal-to 2Gb.
6.5 will break tables into chunks a tad smaller than 2Gb in order to
avoid this problem; you might want to alter the RELSEG_SIZE constant
in /users/postgres/pgsql/src/backend/storage/smgr/md.c to do the same
in 6.4.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-sql@hub.org
Subject: Re: [SQL] So what happens at 2GB?
In-Reply-To: <29692.921433699@sss.pgh.pa.us>
References: <199903140400.XAA11118@hub.org> <29692.921433699@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox