Shra <shravan@yaskatech.com> writes:
> As tom said.....The type is encoded in the atttypmod field (see PQfmod) and
> recommended�using format_type().....
> but when this is used, it returns -1 for integer , real n other fixed
> datatypes .........
The interpretation of typmod is datatype-specific. That's why I
recommended using format_type. But if you want to know what format_type
knows, look at the source code (src/backend/utils/adt/format_type.c).
regards, tom lane