Hm. I did this with my PG installation, and bytelength was what corresponded to the PG interpretation of my varchar(20).
Don't know about the character set of my PG installation. How do I find out?
What would the right way to check for maxlength before the page blows up be?
/Lars