Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCVGL-0007m3-47 for pgsql-jdbc@arkaria.postgresql.org; Wed, 08 Nov 2017 18:39:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCVGK-0007s0-JL for pgsql-jdbc@arkaria.postgresql.org; Wed, 08 Nov 2017 18:39:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eCVGJ-0007rg-1L for pgsql-jdbc@postgresql.org; Wed, 08 Nov 2017 18:39:43 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eCVGB-0007Ma-9v for pgsql-jdbc@postgresql.org; Wed, 08 Nov 2017 18:39:42 +0000 Received: by mail-wm0-x22f.google.com with SMTP id r196so12451692wmf.2 for ; Wed, 08 Nov 2017 10:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=dlIhZMyQQ5iqNRXtQ4DagDSTDUpQMq5wPUJR/88BouA=; b=iauARKOkYI3pfvpmJlHVusY1u4blRqPHAE3aJAsswHkX2Zt+ed2vh3wgRKPhv3cOtA OJJXqSak0iV7kTqQmyNXOdiGN+pGSGk+ePZP8O6WPnAIIAnfPrSAlq77xIdc/Q3Pu7dL LyGI9qTjsPq5aIyn5Q4+9LA6XvyZRqC96uVIaMOUsqCBFVYqfNNVKJuxcKK1G46kcJpW VqzrhsvqHQ2xsUlNoKR5sN27rFh3y8BLA0bk8/HxrvKE4slXNlFKOpFUo2oFxGf5XMUQ wPq7rZJjaUeY/XWZ9yoEoErCPEroW3q6XvKbT79ltCNIXWFQpVF0S+nQATC0gIwg1opr 3RTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=dlIhZMyQQ5iqNRXtQ4DagDSTDUpQMq5wPUJR/88BouA=; b=hxe6e6yVjpRSDuOIATRzu0OzL9a+HpdWJl+AiL4mYeMNH1YwC26zlv84hNrjVr4Av8 xdK1Y60ZP9jG7lloHOwQBh3N/sY5wa0QSq936BWRNV8ncGgjRKCv3wYVirLKHHg+zmVe 4Qi6yTr6Bu3MWPzNo1pz4gP6t25KkR8fp3zSE9zHzFJHGwJr1Z81bB9HXHhs+Cf4rd9O CWTHOaihhmLj+nlh329VvYjowznAx3Ejvhvppso5Qy4WNWjl/IlUWp1eP2Culvi16Yhl YXAGmdgLRCWLqNhvWRlk86cI7mzcOa1bXmdf3m/8irYRkZHaxEpXX1UIiJo1ZiNxQNod xSJQ== X-Gm-Message-State: AJaThX4hbEZIh2TDHIhlriZmOTl68d4OY/lY9Mk4FzXe/neQ7tK06+8D 5PLFDCyXJ3HRLU7Pl4D68ho= X-Google-Smtp-Source: ABhQp+QXD62XON4Xu/2Sfy8+vvvnQBTu5YHU8qmWVF1c8+oedKHQIcEBko/O2Q9WuQD0MB613XjUJQ== X-Received: by 10.80.206.13 with SMTP id y13mr1857092edi.64.1510166374453; Wed, 08 Nov 2017 10:39:34 -0800 (PST) Received: from [192.168.1.104] (cable-static-11-9.breitband.ch. [31.11.11.9]) by smtp.gmail.com with ESMTPSA id i32sm4624733eda.36.2017.11.08.10.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 10:39:33 -0800 (PST) From: juanmarianofuentes Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_D645D992-F67D-4918-9BCB-88605F923907" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: JDBC array support Date: Wed, 8 Nov 2017 19:39:32 +0100 In-Reply-To: Cc: List To: =?utf-8?Q?Jorge_Sol=C3=B3rzano?= References: <1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com> X-Mailer: Apple Mail (2.3273) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --Apple-Mail=_D645D992-F67D-4918-9BCB-88605F923907 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks Jorge, Hope it makes it to the official release soon. Juan > On Nov 8, 2017, at 7:27 PM, Jorge Sol=C3=B3rzano = wrote: >=20 > There is a PR pending of review: = https://github.com/pgjdbc/pgjdbc/pull/887 = >=20 > Jorge Sol=C3=B3rzano >=20 >=20 > On Wed, Nov 8, 2017 at 12:17 PM, juanmarianofuentes = > = wrote: > Dear all, >=20 > I=E2=80=99m new to this list, I hope to get some support regarding the = JDBC driver since I=E2=80=99m developing a middleware using Postgresql. >=20 > I have successfully use the driver to set Object arrays. > preparedStatement.setArray(parameterIndex, = connection.createArrayOf(sqlType, (Object[]) parameter)); >=20 > 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. >=20 > I hope somebody with more experience can point me on the right = direction. >=20 > Thanks in advance, > Juan >=20 > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org = ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc = >=20 --Apple-Mail=_D645D992-F67D-4918-9BCB-88605F923907 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks Jorge,

Hope it makes it to the official release soon.

Juan

On Nov 8, 2017, at 7:27 PM, = Jorge Sol=C3=B3rzano <jorsol@gmail.com> wrote:

There is a PR pending of = review: https://github.com/pgjdbc/pgjdbc/pull/887

Jorge = Sol=C3=B3rzano


On Wed, Nov 8, 2017 at 12:17 = PM, juanmarianofuentes <juanmarianofuentes@gmail.com> wrote:
Dear all,
=
I=E2=80=99m new to this list, I hope to get some support regarding the = JDBC driver since I=E2=80=99m 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


= --Apple-Mail=_D645D992-F67D-4918-9BCB-88605F923907--