Re: [GENERAL] Linux Largefile Support In Postgresql RPMS - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] Linux Largefile Support In Postgresql RPMS
Date
Msg-id 25577.1029248620@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Linux Largefile Support In Postgresql RPMS  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: [GENERAL] Linux Largefile Support In Postgresql RPMS  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-hackers
Oliver Elphick <olly@lfix.co.uk> writes:
> Looking at how to deal with this, is the following going to be
> portable?:

>       #define OFF_T_FORMAT %Ld

That certainly will not be.  Use INT64_FORMAT from pg_config.h.

>       typedef long int OFF_T;

Why not just use off_t?  In both cases?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: [COMMITTERS] pgsql-server/src
Next
From: Oliver Elphick
Date:
Subject: Re: [GENERAL] Linux Largefile Support In Postgresql RPMS