AW: functions returning records

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Karel Zak'" <zakkr(at)zf(dot)jcu(dot)cz>, Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: AW: functions returning records
Date: 2001-06-27 08:35:23
Message-ID: 11C1E6749A55D411A9670001FA68796336834C@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Reinoud van Leeuwen 2001-06-27 08:56:43 Re: AW: functions returning records
Previous Message Oleg Bartunov 2001-06-27 08:17:26 Non-trivial rewriting sql query