Re: Please help!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brandon E Hofmann <Brandon_E_Hofmann(at)notes(dot)ntrs(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Please help!
Date: 2006-06-16 03:22:07
Message-ID: 12604.1150428127@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Brandon E Hofmann <Brandon_E_Hofmann(at)notes(dot)ntrs(dot)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

In response to

  • Please help! at 2006-06-13 16:08:50 from Brandon E Hofmann

Browse pgsql-hackers by date

  From Date Subject
Next Message Qingqing Zhou 2006-06-16 03:24:00 Re: Tuple hint bits (INFOMASK) upon transaction abort
Previous Message Jaime Casanova 2006-06-16 03:20:29 alias for OLD and NEW in triggers