pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedJDBC array support
3+ messages / 2 participants
[nested] [flat]
* JDBC array support
@ 2017-11-08 18:17 juanmarianofuentes <juanmarianofuentes@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: juanmarianofuentes @ 2017-11-08 18:17 UTC (permalink / raw)
To: pgsql-jdbc
Dear all,
I’m new to this list, I hope to get some support regarding the JDBC driver since I’m developing a middleware using Postgresql.
I have successfully use the driver to set Object arrays.
preparedStatement.setArray(parameterIndex, connection.createArrayOf(sqlType, (Object[]) parameter));
The issue here, is that I see myself forced to create object arrays when I could perfectly manage this use case using arrays of basic types, been that way more memory efficient.
I hope somebody with more experience can point me on the right direction.
Thanks in advance,
Juan
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: JDBC array support
@ 2017-11-08 18:27 Jorge Solórzano <jorsol@gmail.com>
parent: juanmarianofuentes <juanmarianofuentes@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jorge Solórzano @ 2017-11-08 18:27 UTC (permalink / raw)
To: juanmarianofuentes <juanmarianofuentes@gmail.com>; +Cc: pgsql-jdbc
There is a PR pending of review: https://github.com/pgjdbc/pgjdbc/pull/887
Jorge Solórzano
On Wed, Nov 8, 2017 at 12:17 PM, juanmarianofuentes <
juanmarianofuentes@gmail.com> wrote:
> Dear all,
>
> I’m new to this list, I hope to get some support regarding the JDBC driver
> since I’m developing a middleware using Postgresql.
>
> I have successfully use the driver to set Object arrays.
> preparedStatement.setArray(parameterIndex, connection.createArrayOf(sqlType,
> (Object[]) parameter));
>
> The issue here, is that I see myself forced to create object arrays when I
> could perfectly manage this use case using arrays of basic types, been that
> way more memory efficient.
>
> I hope somebody with more experience can point me on the right direction.
>
> Thanks in advance,
> Juan
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: JDBC array support
@ 2017-11-08 18:39 juanmarianofuentes <juanmarianofuentes@gmail.com>
parent: Jorge Solórzano <jorsol@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: juanmarianofuentes @ 2017-11-08 18:39 UTC (permalink / raw)
To: Jorge Solórzano <jorsol@gmail.com>; +Cc: pgsql-jdbc
Thanks Jorge,
Hope it makes it to the official release soon.
Juan
> On Nov 8, 2017, at 7:27 PM, Jorge Solórzano <jorsol@gmail.com> wrote:
>
> There is a PR pending of review: https://github.com/pgjdbc/pgjdbc/pull/887 <https://github.com/pgjdbc/pgjdbc/pull/887;
>
> Jorge Solórzano
>
>
> On Wed, Nov 8, 2017 at 12:17 PM, juanmarianofuentes <juanmarianofuentes@gmail.com <mailto:juanmarianofuentes@gmail.com>> wrote:
> Dear all,
>
> I’m new to this list, I hope to get some support regarding the JDBC driver since I’m developing a middleware using Postgresql.
>
> I have successfully use the driver to set Object arrays.
> preparedStatement.setArray(parameterIndex, connection.createArrayOf(sqlType, (Object[]) parameter));
>
> The issue here, is that I see myself forced to create object arrays when I could perfectly manage this use case using arrays of basic types, been that way more memory efficient.
>
> I hope somebody with more experience can point me on the right direction.
>
> Thanks in advance,
> Juan
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org <mailto:pgsql-jdbc@postgresql.org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc <http://www.postgresql.org/mailpref/pgsql-jdbc;
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-11-08 18:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 18:17 JDBC array support juanmarianofuentes <juanmarianofuentes@gmail.com>
2017-11-08 18:27 ` Jorge Solórzano <jorsol@gmail.com>
2017-11-08 18:39 ` juanmarianofuentes <juanmarianofuentes@gmail.com>
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