pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: John Lister <john.lister-ps@kickstone.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Array passing
Date: Tue, 7 Apr 2009 11:17:27 -0400
Message-ID: <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com> (raw)
In-Reply-To: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com>
References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com>

On Tue, Apr 7, 2009 at 10:24 AM, John Lister
<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

view thread (13+ messages)  latest in thread

Message-ID: <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com>
Permalink:  ../491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com/
Also on:    postgresql.org/message-id/491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.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 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: pg@fastcrypt.com, john.lister-ps@kickstone.com
  Subject: Re: Array passing
  In-Reply-To: <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.com>
  References: <E20C873C7A4448C3AF0A68B421ADED62@squarepi.com> <491f66a50904070817o3af217d4odc32bdfd29b47789@mail.gmail.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