Re: [HACKERS] attlen weirdness?

From: "Julia A(dot)Case" <julie(at)hub(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>, "Julia A(dot)Case" <julie(at)hub(dot)org>
Cc: scrappy(at)hub(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] attlen weirdness?
Date: 1998-03-11 10:16:05
Message-ID: 19980311101605.36729@MageNet.com
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?

Julie

--
[ Julia Anne Case ] [ Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for. ]
[ Admining Linux ] [ To thine own self be true. ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julia A.Case 1998-03-11 10:21:29 Re: [HACKERS] attlen weirdness?
Previous Message Julia A.Case 1998-03-11 08:21:24 Re: [HACKERS] attlen weirdness?