Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E53E137BD53 for ; Mon, 29 Sep 2008 10:55:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50179-09 for ; Mon, 29 Sep 2008 10:55:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5DF7F37BA24 for ; Mon, 29 Sep 2008 10:55:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m8TDtZNd011301; Mon, 29 Sep 2008 09:55:35 -0400 (EDT) To: "chetan N" cc: pgsql-general@postgresql.org Subject: Re: error: In-reply-to: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com> References: <24ebf2060809290638t57e73cd4hff5708b739d7a336@mail.gmail.com> Comments: In-reply-to "chetan N" message dated "Mon, 29 Sep 2008 19:08:50 +0530" Date: Mon, 29 Sep 2008 09:55:35 -0400 Message-ID: <11300.1222696535@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/1137 X-Sequence-Number: 138144 "chetan N" writes: > CREATE TYPE emptype as( > name text, > id integer, > dob date); > SELECT * from passingEmployeeList(ARRAY[('chethan', 1, > '10-05-1983'),('ashok', 2, '10-05-1982')]::emptype[] ); > ERROR: could not find array type for data type record That does work in CVS HEAD, but in existing releases you'll need to spell the array constructor like this: ARRAY[('chethan', 1,'10-05-1983')::emptype, ('ashok', 2, '10-05-1982')::emptype] 8.3 and before try to determine the array type too soon --- casting the result of the constructor doesn't help them. regards, tom lane