Re: determining a type oid from the name

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: determining a type oid from the name
Дата
Msg-id CAA-aLv6VAhzj3jWL3rR8_jS8q5DBQ5OQ-AhG-d7Ov6qVLZu9-Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: determining a type oid from the name  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: determining a type oid from the name  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 22 February 2012 18:34, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
> Thom Brown <thom@linux.com> wrote:
>> Does this help?
>>
>> test=# SELECT pg_typeof('4834.34'::numeric)::oid;
>>  pg_typeof
>> -----------
>>       1700
>> (1 row)
>
> Wouldn't it be easier to do this instead?
>
> test=# SELECT 'numeric'::regtype::oid;
>  oid
> ------
>  1700
> (1 row)

Well I may have misread the problem. I thought it was that for a
particular data value, the oid of the type of that value was needed.

--
Thom


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: determining a type oid from the name
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: VACUUM ANALYZE is faster than ANALYZE?