From: jimmy.olsen <jimmy.olsen@ig.com.br>
To: pgsql-sql@postgresql.org
Subject: pg_attribute.attlen -1 for varchar e pbchar fields
Date: Mon, 27 Jun 2005 14:27:41 -0300
Message-ID: <000201c57b3d$c6e0f420$230a0a0a@ligaone.com.br> (raw)
References: <1119886449.29687.3.camel@dicaprio.akademie1.de>
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
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-sql@postgresql.org
Cc: jimmy.olsen@ig.com.br
Subject: Re: pg_attribute.attlen -1 for varchar e pbchar fields
In-Reply-To: <000201c57b3d$c6e0f420$230a0a0a@ligaone.com.br>
References: <1119886449.29687.3.camel@dicaprio.akademie1.de> <000201c57b3d$c6e0f420$230a0a0a@ligaone.com.br>
* 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