Re: arrays of composite types, and client drivers like JDBC - Mailing list pgsql-general

From Rob Nikander
Subject Re: arrays of composite types, and client drivers like JDBC
Date
Msg-id 84936C57-A75C-4068-834C-1966C1034F89@gmail.com
Whole thread Raw
In response to Re: arrays of composite types, and client drivers like JDBC  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-general

> On Jun 15, 2019, at 1:47 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>
> Basically because java would have to create a type dynamically to parse the data into.
> There's nothing inherently difficult about parsing the data, the problem is what do we put it into ?

(I accidentally replied off-list, so resending this.)

It could parse it to strings and convert only when I call `getInt`, `getTimestamp`, etc. But, like you said, I see that
theparsing isn't that difficult, so I wrote something that seems to work. Probably that code should be in the library,
notmy application. If I test this out some more and it still seems to work, I’ll ask again about contributing to
https://github.com/pgjdbc/pgjdbc.

Rob


pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: checkpoints taking much longer than expected
Next
From: Rob Nikander
Date:
Subject: Async client libraries - not worth it?