Re: [HACKERS] Where does catalog store CHAR length ?

2003-12-01 Thread Alvaro Herrera
On Mon, Dec 01, 2003 at 06:31:56PM +0800, phd9110 wrote: > the table pg_attribute have the attribute "attlen" , and this attribute will > store the attribute length. For example , when integer , this value will be 4. > But if attribute type is Char(xx), this value will be -1. This is because it

[HACKERS] Where does catalog store CHAR length ?

2003-12-01 Thread phd9110
hi the table pg_attribute have the attribute  "attlen" , and this attribute willstore the attribute length. For example , when integer , this value will be 4.But if attribute type is Char(xx), this value will be -1. This is because itreference the bychar in pg_type table.So, where is the Cha