X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5491752806 for ; Mon, 27 Jun 2005 14:25:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58444-06 for ; Mon, 27 Jun 2005 17:24:51 +0000 (GMT) Received: from cliente12.ligaone.com.br (unknown [200.251.208.159]) by svr1.postgresql.org (Postfix) with ESMTP id 65C575293E for ; Mon, 27 Jun 2005 14:24:49 -0300 (ADT) Received: from cliente12 ([127.0.0.1]) by cliente12.ligaone.com.br with Microsoft SMTPSVC(5.0.2195.6713); Mon, 27 Jun 2005 14:29:30 -0300 Message-ID: <000201c57b3d$c6e0f420$230a0a0a@ligaone.com.br> From: "jimmy.olsen" To: References: <1119886449.29687.3.camel@dicaprio.akademie1.de> Subject: pg_attribute.attlen -1 for varchar e pbchar fields Date: Mon, 27 Jun 2005 14:27:41 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 27 Jun 2005 17:29:30.0998 (UTC) FILETIME=[C6E40160:01C57B3D] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.75 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200506/314 X-Sequence-Number: 21915 Hi listers, I'm facing a problem getting information from meta tables. The command: SELECT attname, atttypid, attlen FROM pg_attribute where atttypid IN(1042, 1043) The attlen column always returns -1 for bpchar and varchar columns. the postgre version is 8.0.1. When I look the tables in pgAdmin the column lengths are correct. Where can I find the correct column lengths?? Alessandro - Liga One Sistemas alessandro@ligaone.com.br