getting datatype of array elements

Поиск
Список
Период
Сортировка
От Moritz Sinn
Тема getting datatype of array elements
Дата
Msg-id 87y96tmsym.fsf@appserv.sinnhq.de
обсуждение исходный текст
Ответы Re: getting datatype of array elements  (Joe Conway <mail@joeconway.com>)
Список pgsql-general
hi,

with the following statement, i get the datatype of a column with help of
its name and the tableoid:

SELECT typname FROM pg_attribute LEFT JOIN pg_type ON atttypid=typelem
WHERE attrelid=18210 AND attname='email';

but if the columns datatyp is an array, that doesn't work.
i'd like to get the basic datatype (the datatype of the array elements) then.

any ideas?

thanks,
 moritz

--

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

Предыдущее
От: "Ken Godee"
Дата:
Сообщение: Re: Copy/foreign key contraints
Следующее
От: Joe Conway
Дата:
Сообщение: Re: getting datatype of array elements