pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek Lewczuk <newsy@lewczuk.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: AbstractJdbc2Array - another patch
Date: Fri, 26 Oct 2007 20:08:17 +0200
Message-ID: <47222D11.5010006@lewczuk.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0710261209350.18147@leary.csoft.net>
References: <470DE5E7.2090807@lewczuk.com>
	<Pine.BSO.4.64.0710180401490.16749@leary.csoft.net>
	<47172FF2.6070203@lewczuk.com>
	<4717A074.4000109@ejurka.com>
	<4721D42E.4060107@lewczuk.com>
	<Pine.BSO.4.64.0710261209350.18147@leary.csoft.net>

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






view thread (20+ messages)  latest in thread

Message-ID: <47222D11.5010006@lewczuk.com>
Permalink:  ../47222D11.5010006@lewczuk.com/
Also on:    postgresql.org/message-id/47222D11.5010006@lewczuk.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: newsy@lewczuk.com, books@ejurka.com
  Subject: Re: AbstractJdbc2Array - another patch
  In-Reply-To: <47222D11.5010006@lewczuk.com>
  References: <470DE5E7.2090807@lewczuk.com> <Pine.BSO.4.64.0710180401490.16749@leary.csoft.net> <47172FF2.6070203@lewczuk.com> <4717A074.4000109@ejurka.com> <4721D42E.4060107@lewczuk.com> <Pine.BSO.4.64.0710261209350.18147@leary.csoft.net> <47222D11.5010006@lewczuk.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox