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

Re: return query/composite types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: return query/composite types
Date: 2009-02-20 20:00:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> create table foo(a int, b int);
> postgres=# create function rfoo() returns setof foo as $$ begin return
> query select foo from foo; end; $$ language plpgsql;

Use "select * from ..." instead.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Merlin MoncureDate: 2009-02-20 20:25:55
Subject: Re: return query/composite types
Previous:From: Merlin MoncureDate: 2009-02-20 19:53:37
Subject: return query/composite types

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