AW: functions returning records

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: functions returning records
Дата
Msg-id 11C1E6749A55D411A9670001FA68796336834C@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: functions returning records  ("Reinoud van Leeuwen" <reinoud@xs4all.nl>)
Список pgsql-hackers
>  For the result from foo() you must somewhere define attributes (names). 
> Where? In CREATE FUNCTION statement? Possible must be:
> 
>  select name1, name2 from foo() where name1 > 10;

Yes, optimal would imho also be if the foo() somehow had access to
the where restriction, so it could only produce output, that the
higher level is interested in, very cool. This would be extremely 
useful for me. Very hard to implement, or even find an appropriate 
interface for though.

Andreas


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Non-trivial rewriting sql query
Следующее
От: "Reinoud van Leeuwen"
Дата:
Сообщение: Re: AW: functions returning records