Re: pg_dump and large files - is this a problem?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Giles Lean <giles(at)nemeton(dot)com(dot)au>, Philip Warner <pjw(at)rhyme(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: pg_dump and large files - is this a problem?
Date: 2002-10-24 22:12:56
Message-ID: Pine.LNX.4.44.0210242030480.12035-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:

> OK, NetBSD added.
>
> Any other OS's need this? Is it safe for me to code something that
> assumes fpos_t and off_t are identical? I can't think of a good way to
> test if two data types are identical. I don't think sizeof is enough.

No, you can't assume that fpos_t and off_t are identical.

But you can simulate a long fseeko() by calling fseek() multiple times, so
it should be possible to write a replacement that works on all systems.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2002-10-24 22:40:09 Re: Hot Backup
Previous Message cbbrowne 2002-10-24 21:12:14 Re: Hot Backup