X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B24EA329ECC for ; Tue, 5 Oct 2004 22:28:30 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60426-04 for ; Tue, 5 Oct 2004 21:28:19 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F1D29329D9E for ; Tue, 5 Oct 2004 22:28:19 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i95LSDVO018242; Tue, 5 Oct 2004 17:28:13 -0400 (EDT) To: Oliver Jowett Cc: Kris Jurka , Johann Robette , pgsql-jdbc@postgresql.org Subject: Re: Postgres 8.0 + JDBC In-reply-to: <41630AAB.7080501@opencloud.com> References: <002901c4aaf7$feabc310$a5010a0a@Johann> <4162FFC9.3010808@opencloud.com> <41630AAB.7080501@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Wed, 06 Oct 2004 09:57:15 +1300" Date: Tue, 05 Oct 2004 17:28:12 -0400 Message-ID: <18241.1097011692@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/19 X-Sequence-Number: 11124 Oliver Jowett 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