Cast as compound type - Mailing list pgsql-hackers

From David Fetter
Subject Cast as compound type
Date
Msg-id 20080330181513.GA12289@fetter.org
Whole thread Raw
Responses Re: Cast as compound type
Re: Cast as compound type
List pgsql-hackers
Folks,

I'd like to take a whack at making set-returning functions returning
SETOF RECORD a little more fun to use.  Let's imagine that we have a
table foo and a function returning SETOF RECORD that can return foos.
The call might look something like:

SELECT a, b, c
FROM f(ROW OF foo)
WHERE ...;

This would make it much easier and less error-prone to use SETOF
RECORD.

Would others like to see such a feature?

If so, what pieces of the code would I be touching for the first
patch?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Add size/acl information when listing databases
Next
From: sanjay sharma
Date:
Subject: Submission of Feature Request : RFC- for Implementing Transparent Data Encryption in Postgres