Re: [HACKERS] Types

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: [HACKERS] Types
Дата
Msg-id 200001221056.KAA10118@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Types  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: [HACKERS] Types  (Michael Meskes <meskes@postgresql.org>)
Re: [HACKERS] Types  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Michael Meskes wrote: >libpq gives back the internal typenumbers of the attributes. How do I know >which number means
whichtype? I need to find out if the type is an array.
 

If the type is 1007, then:

template1=> select typname from pg_type where oid = 1007;
typname
-------
_int4  
(1 row)

If the typename begins with an underscore, it is an array type.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver              PGP key from public servers; key
ID32B8FAA1                ========================================    "He that giveth unto the poor shall not lack..."
                            Proverbs 28:27 
 




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Types
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [HACKERS] off topic