Re: functions returning records

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: functions returning records
Дата
Msg-id 20010628094111.D27259@ara.zf.jcu.cz
обсуждение исходный текст
Ответ на Re: functions returning records  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
The other thing:
1/    SELECT a, b, c FROM foo();2/    SELECT a FROM foo();
How result (build and) returns function foo() in example 1/ and 2/ ?
It's bad functions if returns same result for both queries -- because in example 2/ is wanted only one columns. IMHO
functionreturning records needs information about wanted result (number of columns, etc).
 
For example trigger functions has specific information by"CurrentTriggerData" struct. For functions returning records
wecan create special struct too. What?
 
            Karel

-- Karel Zak  <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz,
http://mape.jcu.cz


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

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: Re: functions returning records
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Re: 7.2 items