From: shuaixf <shuaixf@gmail.com>
To: pgsql-admin@postgresql.org
Subject: how can I get the length of columns of a table by system tables/views
Date: Wed, 7 Sep 2011 08:20:40 -0700 (PDT)
Message-ID: <1315408840339-4778911.post@n5.nabble.com> (raw)
For example:
CREATE TABLE tb(name varchar(32));
According to pg_class, pg_attribute, pg_type, I can get the tablename,
column name, column type
however, how to get the length of columns of a table by system tables/views?
Thanks!
--
View this message in context: http://postgresql.1045698.n5.nabble.com/how-can-I-get-the-length-of-columns-of-a-table-by-system-tab...
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: shuaixf@gmail.com
Subject: Re: how can I get the length of columns of a table by system tables/views
In-Reply-To: <1315408840339-4778911.post@n5.nabble.com>
* 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