Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5EC022E010A for ; Fri, 29 Feb 2008 13:54:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77801-07 for ; Fri, 29 Feb 2008 13:53:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 5E7862E00AE for ; Fri, 29 Feb 2008 13:53:58 -0400 (AST) Received: (qmail 19541 invoked by uid 1112); 29 Feb 2008 17:53:57 -0000 Date: Fri, 29 Feb 2008 12:53:57 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: dmp cc: pgsql-jdbc@postgresql.org Subject: Re: Array Char/VarChar Size In-Reply-To: <47C8419F.2060909@ttc-cmc.net> Message-ID: References: <47C512CA.9010808@ttc-cmc.net> <47C8419F.2060909@ttc-cmc.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/206 X-Sequence-Number: 18413 On Fri, 29 Feb 2008, dmp wrote: > 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)[]. Multi-dimensional array information is not stored. Every array type may be any number of dimensions. The precision information is not available in the information_schema, but it is available in the system catalog tables. See pg_attribute.atttypmod, but it does require some decoding. Kris Jurka