Re: 64-bit API for large object - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 64-bit API for large object
Date
Msg-id 21403.1348244196@sss.pgh.pa.us
Whole thread Raw
In response to Re: 64-bit API for large object  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
Responses Re: 64-bit API for large object  (Tatsuo Ishii <ishii@postgresql.org>)
List pgsql-hackers
Kohei KaiGai <kaigai@kaigai.gr.jp> writes:
> Tom, could you give us a suggestion which manner is better approach; whether
> the PQfn should have responsibility for endian translation of 64bit-integer, or
> callers (lo_tell64 or lo_seek64)?

Adding anything inside pqFunctionCall is useless, unless we were to add
an int64 variant to PQArgBlock, which isn't a good idea because it will
be an ABI break.  The functions in fe-lobj.c have to set up the int64
value as if it were pass-by-reference, which means dealing with
endianness concerns there.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: DB & Schema
Next
From: Tom Lane
Date:
Subject: Re: Confusing EXPLAIN output in case of inherited tables