Re: MetaData (size of datatype)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MetaData (size of datatype)
Дата
Msg-id 23624.1020091174@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MetaData (size of datatype)  (Shra <shravan@yaskatech.com>)
Список 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 по дате отправления:

Предыдущее
От: Phil Dodderidge
Дата:
Сообщение: GSSAPI/Kerberos
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Vote totals for SET in aborted transaction