Oliver Elphick <olly(at)lfix(dot)co(dot)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