Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEKBU-0006hG-2i for pgsql-jdbc@arkaria.postgresql.org; Thu, 22 Jan 2015 16:00:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YEKBS-00033T-TC for pgsql-jdbc@arkaria.postgresql.org; Thu, 22 Jan 2015 16:00:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YEKBN-0002w6-Vk for pgsql-jdbc@postgresql.org; Thu, 22 Jan 2015 16:00:34 +0000 Received: from nm40-vm9.bullet.mail.ir2.yahoo.com ([212.82.97.177]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YEKBI-00076y-Jl for pgsql-jdbc@postgresql.org; Thu, 22 Jan 2015 16:00:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1421942426; bh=eCpNatkeXBPjyVqlNIeH6fB1xPO6zp4pUDLdKdwJqyA=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=kXbi41riSucBUfip0+1+oX4scY2hevWm15id8G/3q1y8cgycS5zk6omd639f/SxMiyWwgLoJh0fcIpjFQ+jpuXKOJ5c7ENsO6OLL4f/0iCth5hfbFkcN04DpGeSo5SAkEPoYauEBAoI57yGrtIAg2Kxyhci8JFvWCbPEKgLa2asL2LlWtyA8P1IKEGEAfmzZpf1j9EYAoYukoyXaLUB7QAFukWp9Dz2QetUYzwMbXJme424hWXJ6DarLDjTAXoT37Vp30q0ttrrCK4PU6KhKyIJSTUPLkBiEuM1JoHj5Nva8VZ/o3R5qs8pLSYwPe07wLgBB9mR1lX+tFtW+XBV4WA== Received: from [212.82.98.51] by nm40.bullet.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 16:00:26 -0000 Received: from [212.82.98.104] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 16:00:26 -0000 Received: from [127.0.0.1] by omp1041.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 16:00:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 258261.46656.bm@omp1041.mail.ir2.yahoo.com X-YMail-OSG: 5WgBrf8VM1kPFk2iHiP.vxSPuu8vDXoL2l_gQGrjIrMfD1C.x4whmLu1jCKhlQ3 8jmq164jDtceuyO_aBKt7TjhOfLAUUoLpv6pG1B7UFscPGBObB_kGyGSqDiZ3_aA.Hq19CGwm0q6 kqUD6FmQzMAMxUocmY3Y8G5jWZV6h857NJjDBzEePYb_kb8.I7Tg_AiBMOWtFgkuAKB0dxJ0jCqj ddozaT1sZq5_JCQJwoB_6mdckB4e8Im_GMWOUvTchYsWFIcEfhBmLgX6naqfQ4boTo_Xgv5ORzDz mfb2.UTAHLuf1Dn9lJjFpEYPt_qi3bgJnlMY6FQu1GgH0yM_Nw4m1aizrym6hprGQ2v83g7u6C9R pjPvPUQ73OUWKf4tVLov9aQE3Vnz8HvfBZabcNh58VFCaUlQvkckeCsmx7BX5gAzFx6oWZvIc8hv mCP9m4iKdUVTBiznxJN9ve12VUqI.EbeStmR0PNe_5OJFMw_LwmFyLQxknX3R_5pv0_0GIzDL1XQ iPaWCvw-- Received: by 212.82.98.119; Thu, 22 Jan 2015 16:00:25 +0000 Date: Thu, 22 Jan 2015 16:00:25 +0000 (UTC) From: Oussema Benjemaa Reply-To: Oussema Benjemaa To: "pgsql-jdbc-owner@postgresql.org" , "pgsql-jdbc@postgresql.org" Message-ID: <1171561054.5613709.1421942425167.JavaMail.yahoo@jws11173.mail.ir2.yahoo.com> In-Reply-To: <1787414485.5649573.1421942386740.JavaMail.yahoo@jws11142.mail.ir2.yahoo.com> References: <747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com> <822218188.5704365.1421942373331.JavaMail.yahoo@jws11103.mail.ir2.yahoo.com> <1787414485.5649573.1421942386740.JavaMail.yahoo@jws11142.mail.ir2.yahoo.com> Subject: Fw: mapping java objects with postgresql types MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5613708_1697040193.1421942425162" Content-Length: 7099 X-Pg-Spam-Score: 0.4 (/) 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 ------=_Part_5613708_1697040193.1421942425162 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =C2=A0Hi,=20 I want to pass=C2=A0 array of complex type from java intoplpgsql function I already tried using JDBC Array and Structtypes,=C2=A0=C2=A0 but postgresq= l jdbc driver doesn't implement Struct yet so weweren't able to get thinks = work=20 (in addition of the fact that. (Connection.createStruct is notimplemented i= n postgres JDBC) and actually as solution , i'm using PGObject to push the data to the datab= ase with some diffuclts with the syntax and this is=C2=A0 mainly for types = composites having bytea datatype .. but finally i=C2=A0 succeded to push data to the database with the usage of= the=C2=A0 text representation of the array of the type composite . But i'm strongly ,=C2=A0 looking for an alternative of the PGObject , to av= oid passing complex structures (array of types) from jdbc with text represe= ntation. ALso i didn't found documentation for passing such as complex structures in= cluding the the rules fortext representation of nested types . Could you please advice ... Oussema BenJemaaSenior DBA =C2=A0 ------=_Part_5613708_1697040193.1421942425162 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable






<= div id=3D"yiv1311814020">
 Hi,

I want to pass  array of complex type from java into plpgsql function

I already tried using JDBC Array and Str= uct types,   but postgresql jdbc driver doesn't implement Struct yet = so we weren't able to get thinks work

(in addition of the fact= that. (Connection.createStruct is not implemented in postgres JDBC)

and actually as solution , i'm using PGObject to push the da= ta to the database with some diffuclts with the syntax and this is  ma= inly for types composites having bytea datatype ..

but finally= i  succeded to push data to the database with the usage of the  = text representation of the array of the type composite .

But= i'm strongly ,  looking for an alternative of the PGObject , to avoid= passing complex structures (array of types) from jdbc with text representa= tion.

ALso i didn't found documentati= on for passing such as complex structures including the the rules for text representation of nested types .
Could you please advice = ...

Oussema BenJemaa
Sen= ior DBA
 


=
------=_Part_5613708_1697040193.1421942425162--