Re: functions returning records - Mailing list pgsql-hackers

From Karel Zak
Subject Re: functions returning records
Date
Msg-id 20010628094111.D27259@ara.zf.jcu.cz
Whole thread Raw
In response to Re: functions returning records  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: functions returning records
Next
From: Hannu Krosing
Date:
Subject: Re: Re: 7.2 items