AW: [HACKERS] attlen weirdness?

From: Zeugswetter Andreas <andreas(dot)zeugswetter(at)telecom(dot)at>
To: "'pgsql-hackers(at)hub(dot)org'" <pgsql-hackers(at)hub(dot)org>
Subject: AW: [HACKERS] attlen weirdness?
Date: 1998-03-11 15:47:56
Message-ID: 01BD4D0D.7385BCE0@pc9358.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Quoting Bruce Momjian (maillist(at)candle(dot)pha(dot)pa(dot)us):
> I assume you are asking of attlen for char() and varchar() have the max
> length. The answer is now NO. They are varlena structures like text,
> and so have a attlen of -1. Atttypmod for that pg_attribute row now has
> the defined length.
>

Even for a char(4) field? ok, if attlen doesn't give the
length of a field, how do I find it?

Right now: yes, but I would like to see the char() type changed to a fixed length type (which it really is)
then it would have the length in attlen. Right now the length for char and varchar is in atttypmod.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-03-11 15:53:10 Re: [HACKERS] attlen weirdness?
Previous Message Zeugswetter Andreas 1998-03-11 15:43:06 Re: [HACKERS] indexing words slow