Catalog pg_attribute contains interesting type-specific information in
attribute atttypmod. Can someone verify that these encodings are correct?

CHAR and VARCHAR: 4 + the declared length. Example: CHAR(5) -> 9 in
atttypmod
NUMERIC(p,s): 4 + the long with p in the left-most 4 bytes and s in the
right-most

Reply via email to