Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 79F482E0149 for ; Fri, 29 Feb 2008 13:37:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 42284-03 for ; Fri, 29 Feb 2008 13:37:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from zeppelin.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by postgresql.org (Postfix) with ESMTP id AD5BB2E01A1 for ; Fri, 29 Feb 2008 13:37:45 -0400 (AST) Received: from [192.168.157.32] (unknown [216.129.226.38]) by zeppelin.vnet-inc.com (Postfix) with ESMTP id 642995811 for ; Fri, 29 Feb 2008 10:37:44 -0700 (MST) Message-ID: <47C8419F.2060909@ttc-cmc.net> Date: Fri, 29 Feb 2008 10:32:15 -0700 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Array Char/VarChar Size References: <47C512CA.9010808@ttc-cmc.net> In-Reply-To: <47C512CA.9010808@ttc-cmc.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/205 X-Sequence-Number: 18412 Perhaps this is not the appropriate list, but is there a way to determine this information from the information_schema? The reason I ask is I can not seem to find this information there either. pg_dump does provide this information, though lacking the ability to proper identify multi-dimensional arrays, ex. char(30)[][] gives char(30)[]. danap. > Currently the driver does not return this information, but we've > listed it as an open feature request: > > http://pgfoundry.org/tracker/index.php?func=detail&aid=1010248&group_id=1000224&atid=857 > > Kris Jurka > Given a defined table as such: > > CREATE TABLE array_types ( > > data_type_id serial NOT NULL, > decimal_array decimal(16,2)[] DEFAULT NULL, > numeric_array numeric(10,2)[] DEFAULT NULL, > varchar_array varchar(30)[] DEFAULT NULL, > char_array char(30)[][] DEFAULT NULL, > PRIMARY KEY (data_type_id) > ); > > How do I obtain the precision, decimal places, or character > sizing information from the database. Notice these are array > types. > > danap.