agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] VarLenTuple example code
Date: Thu, 28 Sep 2006 16:04:00 +0200
Message-ID: <451BD650.2080201@logix-tt.com> (raw)
In-Reply-To: <451BD2F4.60202@tada.se>
References: <451BD0B1.8000408@logix-tt.com>
<451BD2F4.60202@tada.se>
Hi, Thomas,
Thomas Hallgren wrote:
> Hmm, perhaps just an oversight, bot you don't have UDT syntax on the
> send/receive methods, i.e. this line:
>
> + AS 'org.postgresql.pljava.example.VarLenTuple.receive'
>
> should read
>
> + AS 'UDT[org.postgresql.pljava.example.VarLenTuple] receive'
That was intentional, as I wanted the customary written send and receive
methods to be called (and not those from UDT.c) as I want the
send/receive binary format [type B)] in a platform independent
big-endian format, different from the internal one [type C)].
Declaring those methods without UDT[] magic was the way I hoped to
achieve that, according to how I understood our discussion.
Btw, I don't know whether my actual implementations of send() and
receive() are correct, as I could not really test them, but from a quick
look at the hexdump of the COPYed file, at least the send() way seems to
work.
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060928/d259ead0/attachment.bin;
view thread (18+ messages) latest in thread
Message-ID: <451BD650.2080201@logix-tt.com>
Permalink: ../451BD650.2080201@logix-tt.com/
Also on: postgresql.org/message-id/451BD650.2080201@logix-tt.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] VarLenTuple example code
In-Reply-To: <451BD650.2080201@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox