Re: Large file support available

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Large file support available
Date: 2002-08-27 18:27:17
Message-ID: Pine.LNX.4.44.0208271855110.1221-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:

> My point is that it seems fsetpos is the approved way of accessing large
> files, rather than fseeko. In fact, I don't have fseeko here but I do
> have fsetpos, and it does handle large files because my includes have
> this:
>
> typedef off_t fpos_t
> typedef quad_t off_t;

Interesting. In general, you can't rely on fpos_t being an integral type,
which indeed on my machine it isn't. But for pg_dump we need an integral
type because we do offset arithmetic.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-27 18:32:03 Re: Large file support available
Previous Message Bruce Momjian 2002-08-27 17:45:20 Re: REINDEX ALL and CLUSTER ALL