Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEJrL-0005px-Mc for pgsql-jdbc@arkaria.postgresql.org; Thu, 22 Jan 2015 15:39:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YEJrL-000248-0c for pgsql-jdbc@arkaria.postgresql.org; Thu, 22 Jan 2015 15:39:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YEJrJ-00021M-EV for pgsql-jdbc@postgresql.org; Thu, 22 Jan 2015 15:39:49 +0000 Received: from nm31-vm9.bullet.mail.ir2.yahoo.com ([212.82.97.96]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YEJrF-0006U5-Fu for pgsql-jdbc@postgresql.org; Thu, 22 Jan 2015 15:39:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1421941180; bh=g3po9mFPKKW8G8GY1I9JD5cPP5vo9/Mg29IzjU0vCrk=; h=Date:From:Reply-To:To:Subject:From:Subject; b=BBj72LO2tbnSn65gY8K/VxlntZy9mZ42S9sDdLJOZCNZwouKazYe3ODUsjTCSIx4yB9Kofu6L8FXTHXGFI3/yY6SkyvX9XHsMPXpPsKV1pxDrXA/CuWmpofwdbI6SB9oIS5xoNTAsYt/OwXfgC9uJcjT/C6e6vQfRHgWQXgFI6AjaeYF9sXUo/R9rLdtYuDDBElOo7RUK1xpBURW+jrHbQrE8g3wsLpmbZvrk4hk2uXgD+1k8G2pwe4nW15zeNuKzz9YBWqT88SWk+AdK4tBDlj8LCjmVZG3Ez+I3RHEt2G03vwrLARhWlb4IIKo5abDlxJpLTNMnBiaGL+7RezUWg== Received: from [212.82.98.61] by nm31.bullet.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 15:39:40 -0000 Received: from [212.82.98.78] by tm14.bullet.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 15:39:40 -0000 Received: from [127.0.0.1] by omp1015.mail.ir2.yahoo.com with NNFMP; 22 Jan 2015 15:39:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 139720.29505.bm@omp1015.mail.ir2.yahoo.com X-YMail-OSG: 11kEfmwVM1lRAK.HiqNVyqIh4HbxSHKG_J9ttapyNHBrsuX.4m4U287507r5qmY rn69RPQOaLdzJbyERU.yqoUilBdHhS4BLrYOqaXKK.Mcb.SH4_G8J9Np5C2QpWKjQpR1O1JB_XW4 YCFJZt1uykLv52xKE4PCVnZY4.RRnFSznsOw442K53R1J9M1qU7_I73Bas_DFAz0.wFIGKjspNZ1 yZown2LzFeUoIEv1lWArDMRZ55q0iH93qlKfetuFLrP1N16vV53gYNDVXcIEEDbbgqC.COuikEQ3 grlga3Vwvc8lH7spTd05kbxIW_ZL_C9ReioRhoocj0VZHdGqQ91nXgJGFQe7pErpuZE0fJSYZ7JF I62wGfaevdPezwm6ADDPB.3hGiIkQ_2IHJ.HqMt_ujSQkjG4X54v_sp_jEHf7.pcXHR9uPUrFQ07 K5e3pKury0zpJiW43Sx8yCsndC4ljXAgIiVwNj3kP2QxpZz4vAitpnW.YEh8niHdMviJFNu33Xym m17zjig-- Received: by 217.12.9.10; Thu, 22 Jan 2015 15:39:39 +0000 Date: Thu, 22 Jan 2015 15:39:39 +0000 (UTC) From: Oussema Benjemaa Reply-To: Oussema Benjemaa To: "pgsql-jdbc@postgresql.org" Message-ID: <747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com> Subject: mapping java objects with postgresql types MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5625573_25256764.1421941179299" Content-Length: 4382 X-Pg-Spam-Score: 1.2 (+) 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_5625573_25256764.1421941179299 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_5625573_25256764.1421941179299 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
 Hi,

I want to pass  array of complex type from java int= o plpgsql function

I alre= ady tried using JDBC Array and Struct 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 data to the database with some diffuclts with the syntax and this is&nb= sp; mainly 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 th= e PGObject , to avoid passing complex structures (array of types) from jdbc= with text representation.

ALso= i didn't found documentation for passing such as complex structures includ= ing the the rules for text representation of nested types .

Could you please= advice ...

Oussema BenJemaa
Senior DBA
 
------=_Part_5625573_25256764.1421941179299--