select from table - Mailing list pgsql-sql

From Kovacs Zoltan Sandor
Subject select from table
Date
Msg-id Pine.LNX.4.05.10006291852400.25722-100000@pc10.radnoti-szeged.sulinet.hu
Whole thread Raw
List pgsql-sql
I would like to do something like this:

create function x(varchar) returns setof int4 as
'select * from $1;' language 'sql';

Unfortunately, the parser drops me back: I cannot use any parameters after
the keyword "from". How to solve this? A solution in PL/PgSQL would be
also nice.

Thanks in advance, Zoltan



pgsql-sql by date:

Previous
From: Thomas Swan
Date:
Subject: Re: Finding the names of inheriting classes
Next
From: Vadim Passynkov
Date:
Subject: some strings from errlog