Skip site navigation (1) Skip section navigation (2)

Cast as compound type

From: David Fetter <david(at)fetter(dot)org>
To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Cast as compound type
Date: 2008-03-30 18:15:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

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

Would others like to see such a feature?

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

David Fetter <david(at)fetter(dot)org>
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres:


pgsql-hackers by date

Next:From: sanjay sharmaDate: 2008-03-30 18:52:47
Subject: Submission of Feature Request : RFC- for Implementing Transparent Data Encryption in Postgres
Previous:From: Tom LaneDate: 2008-03-30 18:11:16
Subject: Re: [PATCH] Add size/acl information when listing databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group