From: John Lister <john.lister-ps@kickstone.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Array passing
Date: Tue, 07 Apr 2009 22:03:09 +0100
Message-ID: <49DBBF8D.2080806@kickstone.com> (raw)
In-Reply-To: <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com>
References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com>
<491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com>
Looking at the spec/docs although you can specify the return type in the
protocol there is no way to do it.. The only way i can see is to use a
stored procedure and specifying the return type there using
registerOutParameter(). However looking in the code
(SimpleParameterList) although the parameter is set to OUT, the return
type is ignored...
Is there any reason for this?
Would setting the return type like this cause any problems?
This would seem to solve my problem...
Thanks
Dave Cramer wrote:
>
>
> On Tue, Apr 7, 2009 at 10:24 AM, John Lister
> <john.lister-ps@kickstone.com <mailto:john.lister-ps@kickstone.com>>
> wrote:
>
> Hi, i've been playing with arrays using the 604 version JDBC 4
> driver and i have a question. They seem to be converted to strings
> which are passed back and forth to the server.
>
> Is it possible to configure the driver to pass the arrays in
> native form? The overhead of converting to strings is quite big in
> my case (both in the size of the string and the time taken) so
> would like to eliminate it if possible...
>
> Which leads onto, does the postgresql protocol support native
> arrays? i'm trying to find docs about the datatypes but would hope
> it did...
>
>
> Yes, it does, but there are platform specific binary representations
> of native types. For instance you can have floating point or integer
> datetimes.
>
> There was some work done on supporting binary protocol at one point,
> not sure where it stands now.
>
> Dave
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: john.lister-ps@kickstone.com
Subject: Re: Array passing
In-Reply-To: <49DBBF8D.2080806@kickstone.com>
References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com> <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com> <49DBBF8D.2080806@kickstone.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox