Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 39F7E9FCB3F for ; Fri, 26 Oct 2007 15:08:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 97988-03-2 for ; Fri, 26 Oct 2007 15:08:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.host.kei.pl (v681.rev.tld.pl [195.149.226.81]) by postgresql.org (Postfix) with ESMTP id 9FC5E9FCA88 for ; Fri, 26 Oct 2007 15:08:24 -0300 (ADT) Received: (qmail 26345 invoked by uid 681007); 26 Oct 2007 18:08:22 -0000 X-clamdmail: clamdmail 0.18a Received: from aasg216.neoplus.adsl.tpnet.pl (HELO ?192.168.1.11?) (marek@lewczuk.com@83.5.218.216) by smtp.host.kei.pl with ESMTPA; 26 Oct 2007 18:08:22 -0000 Message-ID: <47222D11.5010006@lewczuk.com> Date: Fri, 26 Oct 2007 20:08:17 +0200 From: Marek Lewczuk User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc Subject: Re: AbstractJdbc2Array - another patch References: <470DE5E7.2090807@lewczuk.com> <47172FF2.6070203@lewczuk.com> <4717A074.4000109@ejurka.com> <4721D42E.4060107@lewczuk.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/150 X-Sequence-Number: 17722 Kris Jurka pisze: > > > That doesn't sound right to me because we won't be able to put every > possible type (think about user defined) into the Oid class. Perhaps I was thinking only about base types (they are already in Oid class), because it will work much faster if they will be statically written in Oid class. > getResultSet should convert getBaseTypeName() to oid instead of > getBaseType? Then you just need to know if your output is an array or > not (by checking isMultiDimensional) to know whether you want the oid > for type or _type. I still think that we should add base type arrays into Oid class - it will work much faster and will be appropriate cause Oid class already contains base types, so it is logical to put there base type arrays too. For user defined types I would provide a way to fetch oid from pg_type - but for now user defined types are not supported. However, if you really think that we should fetch oid for every array type then I'm able to do it but in my opinion we should stick with Oid class for now (only for base types). Regards, ML