Обсуждение: why I need col. def. list with setof record?

Поиск
Список
Период
Сортировка

why I need col. def. list with setof record?

От
Pavel Stehule
Дата:
Hello
I know so I need to use column definition list when I have SRF 
function without def of own type. But I don't understand why. In my SRF 
function I specify all informations about columns?
 TupleDescInitEntry (tupdesc, 1, "idn", INT4OID, -1, 0, false); TupleDescInitEntry (tupdesc, 2, "idv", VARCHAROID, -1,
0,false);
 

Why I have to duplicate to?

Thank You
Pavel Stehule