Re: arrays of composite types, and client drivers like JDBC

Поиск
Список
Период
Сортировка
От Rob Nikander
Тема Re: arrays of composite types, and client drivers like JDBC
Дата
Msg-id 84936C57-A75C-4068-834C-1966C1034F89@gmail.com
обсуждение исходный текст
Ответ на Re: arrays of composite types, and client drivers like JDBC  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: checkpoints taking much longer than expected
Следующее
От: Rob Nikander
Дата:
Сообщение: Async client libraries - not worth it?