how can I get the length of columns of a table by system tables/views

From: shuaixf <shuaixf(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: how can I get the length of columns of a table by system tables/views
Date: 2011-09-07 15:20:40
Message-ID: 1315408840339-4778911.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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-tables-views-tp4778911p4778911.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-09-07 16:37:19 Re: What are all the reasons/possibilities of failure to free-up disk space occupied by TEMPORARY table?
Previous Message Scott Marlowe 2011-09-07 15:12:43 Re: dump/restore vs vacuum full vs cluster