pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dmp <danap@ttc-cmc.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Array Char/VarChar Size
Date: Fri, 29 Feb 2008 10:32:15 -0700
Message-ID: <47C8419F.2060909@ttc-cmc.net> (raw)
In-Reply-To: <47C512CA.9010808@ttc-cmc.net>
References: <47C512CA.9010808@ttc-cmc.net>

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. 




view thread (5+ messages)  latest in thread

Message-ID: <47C8419F.2060909@ttc-cmc.net>
Permalink:  ../47C8419F.2060909@ttc-cmc.net/
Also on:    postgresql.org/message-id/47C8419F.2060909@ttc-cmc.net

 · 

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: danap@ttc-cmc.net
  Subject: Re: Array Char/VarChar Size
  In-Reply-To: <47C8419F.2060909@ttc-cmc.net>
  References: <47C512CA.9010808@ttc-cmc.net> <47C8419F.2060909@ttc-cmc.net>

* 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