Re: 2GB limit for temp_file_limit on 32bit platform - Mailing list pgsql-hackers

From Mark Kirkwood
Subject Re: 2GB limit for temp_file_limit on 32bit platform
Date
Msg-id 5008C20F.3010506@catalyst.net.nz
Whole thread Raw
In response to Re: 2GB limit for temp_file_limit on 32bit platform  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 20/07/12 12:02, Tom Lane wrote:
> Pavel Stehule <pavel.stehule@gmail.com> writes:
>> I did a backport of temp_file_limit feature to 9.1, but when we tested
>> this patch, we found very restristrictive limit to 2GB.
>> 2GB is nonsense, because this is session limit of temp files, and
>> these files should be longer than 2GB.
> This claim is nonsense.  The variable's value is measured in KB, so the
> effective limit is actually 2TB not 2GB.
>
>

Did you guys perchance pick up one of the earlier patches that had 
MAX_KILOBYTES instead of INT_MAX as the limit? i.e:
        {"temp_file_limit", PGC_SUSET, RESOURCES_DISK,            gettext_noop("Limits the total size of all temp files
used
 
by each session."),            gettext_noop("-1 means no limit."),            GUC_UNIT_KB        },
&temp_file_limit,       -1, -1, **MAX_KILOBYTES**, <====        NULL, NULL, NULL    },
 





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: CHECK NO INHERIT syntax
Next
From: Tom Lane
Date:
Subject: Re: row literal problem