On 08/12/2011 10:04 AM, George MacKerron wrote:
> Hi all.
>
> I have a function returning setof record. The name of a table it acts on is 
> one of its input variables, and its output is a set of rows from that table. 
> E.g. for simplicity, imagine it's this pointless function:
>
> create or replace function select_all_from(table_name text) 
> returns setof record as $$
> declare
> begin
>   return query execute 'select * from ' || quote_ident(table_name);
> end
> $$ language 'plpgsql' stable;
>
>
> Please access the attached hyperlink for an important electronic 
> communications disclaimer: http://lse.ac.uk/emailDisclaimer
>
returns setof table-name


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to