| От | Alvaro Herrera |
|---|---|
| Тема | Re: Get data type aliases |
| Дата | |
| Msg-id | 20130612193109.GH5491@eldon.alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Get data type aliases (Rebecca Clarke <r.clarke83@gmail.com>) |
| Ответы |
Re: Get data type aliases
|
| Список | pgsql-general |
Rebecca Clarke escribió: > Hi all. > > I have a function that has an attribute with datatype of character varying. > In the pg_type table the oid of the data type points to type varchar > > Is there somewhere that identifies the alias for each type? Cast the type name to regtype. That outputs the "official" name. alvherre=# select 'int'::regtype; regtype --------- integer (1 fila) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера