On 4/25/07, Pavel Stehule <[EMAIL PROTECTED]> wrote:
for me RETURNS TABLE (a,b) isn't equialent for (OUT a, OUT b) RETURNS SETOF
RECORD, but
it's eq. for RETURNS SETOF RECORD ... and SELECT FROM foo() AS (a, b).

Reason:

example: I have table with attr. cust_id, and I want to use parametrized
view (table function) where I want to have attr cust_id on output.

You can use table aliases to avoid conflicts.  (t.cust_id)

--
marko

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

               http://www.postgresql.org/about/donate

Reply via email to