From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: Johann Robette <jrobette@onyme.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres 8.0 + JDBC
Date: Tue, 05 Oct 2004 17:28:12 -0400
Message-ID: <18241.1097011692@sss.pgh.pa.us> (raw)
In-Reply-To: <41630AAB.7080501@opencloud.com>
References: <002901c4aaf7$feabc310$a5010a0a@Johann>
<4162FFC9.3010808@opencloud.com>
<Pine.BSO.4.56.0410051527310.11868@leary.csoft.net>
<41630AAB.7080501@opencloud.com>
Oliver Jowett <oliver@opencloud.com> writes:
> I am wondering if the right way to find the array OID is to prepend "_"
> and search on pg_type.typname, or to look for pg_type.typinput = (oid of
> array_in) and pg_type.typelem = (oid of underlying type). Is there a
> 'standard' way of finding an array type OID?
The backend does it by name, ie prepend '_' and lookup by typname (and
typnamespace). This is a mite unclean but it hasn't seemed worth
fixing. If you like you can use the typelem as an additional check that
you found the right thing.
regards, tom lane
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: tgl@sss.pgh.pa.us, oliver@opencloud.com, books@ejurka.com, jrobette@onyme.com
Subject: Re: Postgres 8.0 + JDBC
In-Reply-To: <18241.1097011692@sss.pgh.pa.us>
References: <002901c4aaf7$feabc310$a5010a0a@Johann> <4162FFC9.3010808@opencloud.com> <Pine.BSO.4.56.0410051527310.11868@leary.csoft.net> <41630AAB.7080501@opencloud.com> <18241.1097011692@sss.pgh.pa.us>
* 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