Re: [HACKERS] Linux Largefile Support In Postgresql RPMS

From: strange(at)nsk(dot)yi(dot)org
To: PostgresSQL General Mailing List <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Linux Largefile Support In Postgresql RPMS
Date: 2002-08-13 17:45:59
Message-ID: 20020813184559.A4569@nsk.yi.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Aug 13, 2002 at 01:04:02PM -0400, Tom Lane wrote:
> On a system where building with large-file support is reasonably
> standard, I agree that PG should be built that way too. Where it's
> not so standard, I agree with Andrew Sullivan's concerns ...

What do you mean by "standard"? That only some filesystems are supported?
In Linux the vfat filesystem doesn't support largefiles, so the behaviour
is the same as if the application didn't specify O_LARGEFILE to open(2):
As Helge Bahmann pointed out, "kernel will refuse to write files larger than
2GB". In current Linux, a signal (SIGXFSZ) is sent to the application
that then dumps core.

So, the use of O_LARGEFILE is nullified by the lack of support by the
filesystem, but no problem is introduced by the application supporting
largefiles, it already existed before.

All the crashes and problems presented on these lists occur when largefile
support isn't compiled, I didn't see one occuring from any application
having the support, but not the filesystem. (Your "not so standard
support"?)

The changes to postgresql doesn't seem complicated, I can try to make them
myself (fcntl on stdout, stdin; add check to autoconf; etc.) if no one
else volunteers.

Regards,
Luciano Rocha

--
Consciousness: that annoying time between naps.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Nelson 2002-08-13 18:01:39 Blob stuff
Previous Message Jon Swinth 2002-08-13 17:42:07 Re: Transaction Exception Question

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2002-08-13 17:55:34 Re: Everything is now "required by the database system"
Previous Message Tom Lane 2002-08-13 17:38:37 Re: Everything is now "required by the database system"