in psql, we can retrieve table fields with its data type and length using the '\d' command right?

but, how can i get the field length by using the 'pg_' files?
someone...pls help me...

where was postgresql store the information about the field length?
in the catalog system right?
which catalog?
plzz somebody, help me....