Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 823D69FB929; Thu, 14 Jun 2007 04:28:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 07940-08; Thu, 14 Jun 2007 04:28:50 -0300 (ADT) X-Greylist: delayed 00:24:51.866617 by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D56749FBC95; Thu, 14 Jun 2007 04:28:52 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mailhost1.indra.es (mailhost1.indra.es [213.170.46.15]) by svr4.postgresql.org (Postfix) with SMTP id B157E5AF039; Thu, 14 Jun 2007 07:03:57 +0000 (GMT) Received: from MADARRMAIL3.indra.es ([192.168.10.13]) by mailhost1.indra.es with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Jun 2007 09:03:49 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: [SQL] setof or array as input parameter to postgresql 8.2 functions Date: Thu, 14 Jun 2007 09:03:48 +0200 Message-ID: <12B09E52EF3AEF41AEF3D205BD4DF465012268E8@MADARRMAIL3.indra.es> In-Reply-To: <003401c7ae49$d21007a0$763016e0$@com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] setof or array as input parameter to postgresql 8.2 functions Thread-Index: AceuSNeEHCVvf67fQym2g7rqaNtHVgAAGvoQAAIzpUA= References: <000001c7adb1$fb497360$f1dc5a20$@com> <162867790706130555r5a1ba9cbq1c3e2cb0f1adbda7@mail.gmail.com> <003201c7ae47$7ff80460$7fe80d20$@com> <162867790706132257v53da9fb7raebee4f4ed50e00e@mail.gmail.com> <003401c7ae49$d21007a0$763016e0$@com> From: "Manso Gomez, Ramon" To: , X-OriginalArrivalTime: 14 Jun 2007 07:03:49.0413 (UTC) FILETIME=[288B7D50:01C7AE52] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/832 X-Sequence-Number: 115655 How can delete my suscription to this forums? -----Mensaje original----- De: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] En nombre de Jyoti Seth Enviado el: jueves, 14 de junio de 2007 8:04 Para: 'Pavel Stehule' CC: pgsql-general@postgresql.org; pgsql-sql@postgresql.org Asunto: Re: [SQL] setof or array as input parameter to postgresql 8.2 functions Thanks a lot. Regards, Jyoti -----Original Message----- From: Pavel Stehule [mailto:pavel.stehule@gmail.com] Sent: Thursday, June 14, 2007 11:27 AM To: Jyoti Seth Cc: pgsql-general@postgresql.org; pgsql-sql@postgresql.org Subject: Re: [SQL] setof or array as input parameter to postgresql 8.2 functions 2007/6/14, Jyoti Seth : > Thanks for the solution. With this I am able to pass arrays and=20 > multidimensional arrays in postgresql functions. > > One of my problem is still left I want to pass set of values with different > datatypes.For eg: > I want to pass following values to the function: > 1 ajay 1000.12 > 2 rita 2300.24 > 3 leena 1230.78 > 4 jaya 3432.45 > > As the values have different data types I have to create three=20 > different arrays. Is there any way with which I can pass this as a=20 > single setof values. > > You have to wait for 8.3 where arrays on composite types are supported. Currently in one our application we use array of arrays where different types are too, and we cast it to text. Regards Pavel ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org