Re: [HACKERS] Extracting metadata about attributes from catalog

2001-06-24 Thread Tom Lane
"Bernardo Pons" <[EMAIL PROTECTED]> writes: >> In 7.1, "format_type(typeoid, typmod)" is what produces the type >> displays seen in psql. This may or may not be exactly what you want, >> but that's how the knowledge of typmod encoding is exported at the >> moment. > There's 957 functions in psql

Re: [HACKERS] Extracting metadata about attributes from catalog

2001-06-22 Thread Tom Lane
"Bernardo Pons" <[EMAIL PROTECTED]> writes: > The problem I've found is that the attribute that stores the info about data > length (attribute atttypmod of catalog table pg_attribute) is some kind of > internal coding. For example, for an attribute varchar(100) atttypmod value > is 104; for an att