Re: Please help!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Please help!
Дата
Msg-id 12604.1150428127@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Please help!  (Brandon E Hofmann <Brandon_E_Hofmann@notes.ntrs.com>)
Список pgsql-hackers
Brandon E Hofmann <Brandon_E_Hofmann@notes.ntrs.com> writes:
> In plpgsql, how do you return back a result set that is determined and
> generated at runtime based on a report request?

If I understand what you are asking for, you don't.

> Also why does plpgsql require you to define what is returned?

plpgsql is not imposing this, the system as a whole does.  Else, the
parser would have no idea what to expand "*" to in
select * from myfunc(42);

There are facilities that let you use the same textual function "myfunc"
for different result column sets, but this doesn't get you off the hook
of having to tell the calling query what the column set is going to be.
        regards, tom lane


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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: alias for OLD and NEW in triggers
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Tuple hint bits (INFOMASK) upon transaction abort