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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Giles Lean <giles(at)nemeton(dot)com(dot)au>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, 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 03:11:44
Message-ID: 200210240311.g9O3Bim04265@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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.

---------------------------------------------------------------------------

Giles Lean wrote:
>
> > OK, does pre-1.6 NetBSD have fgetpos/fsetpos that is off_t/quad?
>
> Yes:
>
> int
> fgetpos(FILE *stream, fpos_t *pos);
>
> int
> fsetpos(FILE *stream, const fpos_t *pos);
>
> Per comments in <stdio.h> fpos_t is the same format as off_t, and
> off_t and fpos_t have been 64 bit since 1994.
>
> http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/include/stdio.h
>
> Regards,
>
> Giles
>
>
>
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-10-24 03:17:03 Re: One 7.3 item left
Previous Message Bruce Momjian 2002-10-24 03:02:45 Re: One 7.3 item left