Skip site navigation (1) Skip section navigation (2)

Re: Binary tx format for an array?

From: "Michael Guyver" <kenevel(at)googlemail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Binary tx format for an array?
Date: 2006-06-22 08:16:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Thanks very much for your prompt help on this lads.

> sizeof(Oid) is 4 [bytes].  You can check this and other basic datatype
> sizes by looking in pg_type.

So in the following code

StringInfo	buf = (StringInfo) PG_GETARG_POINTER(0)
// ...
Oid element_type = pq_getmsgint(buf, sizeof(Oid));

are the bytes representing an int4 Oid simply 23, represented in variable buf as


The reason for asking is I'm under the impression there can be
differences between network byte-order and other representations.
Hopefully this isn't an inane question - apologies if it is.



In response to


pgsql-jdbc by date

Next:From: Sebastiaan van ErkDate: 2006-06-22 08:35:32
Subject: Re: Limit vs setMaxRows issue
Previous:From: Oliver JowettDate: 2006-06-21 22:56:11
Subject: Re: Lock-when-Loaded failing

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group