Re: MetaData (size of datatype) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: MetaData (size of datatype)
Date
Msg-id 23624.1020091174@sss.pgh.pa.us
Whole thread Raw
In response to Re: MetaData (size of datatype)  (Shra <shravan@yaskatech.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Phil Dodderidge
Date:
Subject: GSSAPI/Kerberos
Next
From: Scott Marlowe
Date:
Subject: Re: Vote totals for SET in aborted transaction