Re: OID of type by name.
| От | Dmitriy Igrishin |
|---|---|
| Тема | Re: OID of type by name. |
| Дата | |
| Msg-id | AANLkTi=_5ka4GE9rvshh0Xhr29gYLXrGH8uSRbK6WWsV@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: OID of type by name. (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: OID of type by name.
|
| Список | pgsql-general |
Yeah, thank you very much!
I've found it already too, but not post back!
Thanks!
--
// Dmitriy.
I've found it already too, but not post back!
Thanks!
2010/12/8 Tom Lane <tgl@sss.pgh.pa.us>
> SELECT oid FROM pg_type WHERE typtype = 'b' AND typarray <> 0 ANDSeems like the hard way --- if you think carefully about what regtype
> typname::regtype = 'integer';
is doing, you'll realize that this is incredibly inefficient, as well
as a lot of typing. I usually do SELECT 'integer'::regtype::oid
when I need a quick numeric lookup.
regards, tom lane
--
// Dmitriy.
В списке pgsql-general по дате отправления: