Re: [HACKERS] Binary cursor header changed from 20 to 16 Bytes? - Mailing list pgsql-hackers

From G. Anthony Reina
Subject Re: [HACKERS] Binary cursor header changed from 20 to 16 Bytes?
Date
Msg-id 37A5CD83.C40B262F@nsi.edu
Whole thread Raw
In response to Re: [HACKERS] Binary cursor header changed from 20 to 16 Bytes?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Binary cursor header changed from 20 to 16 Bytes?
List pgsql-hackers
Bruce Momjian wrote:

> I don't think you can do binary cursors across architectures.  The
> internal formats for most types are different, though you may be able to
> get away with string fields and int if the endian is the same.
>

No, it works just fine. All you have to do is to swap the endian format (Linux Intel
is little endian; SGI is big endian). We've been using this approach since Postgres
6.3.

-Tony




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Binary cursor header changed from 20 to 16 Bytes?
Next
From: Tom Lane
Date:
Subject: Re: flex (was Re: [HACKERS] Installation procedure.)