Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2060EB5DBE8 for ; Wed, 7 Sep 2011 12:20:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 08528-05 for ; Wed, 7 Sep 2011 15:20:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id CA37DB5DC07 for ; Wed, 7 Sep 2011 12:20:41 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R1Jvc-00045a-Bh for pgsql-admin@postgresql.org; Wed, 07 Sep 2011 08:20:40 -0700 Date: Wed, 7 Sep 2011 08:20:40 -0700 (PDT) From: shuaixf To: pgsql-admin@postgresql.org Message-ID: <1315408840339-4778911.post@n5.nabble.com> Subject: how can I get the length of columns of a table by system tables/views MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/42 X-Sequence-Number: 38279 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.