Generic Function

From: lucas(at)presserv(dot)org
To: pgsql-sql(at)postgresql(dot)org
Subject: Generic Function
Date: 2005-03-14 18:15:55
Message-ID: 20050314151555.6kp8nfclzy5cogg0@www.presserv.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,
Can I built a generic function like:
CREATE FUNCTION f (text) RETURNS TEXT as
$$
return 'select * from $1';
$$
I know its impossible as writed. Also I have looked for EXECUTE procedure but it
not run the correct function.
Is there a way to construct this clause? Using plpgsql/pltcl/anything.... ???

Thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Timothy Smith 2005-03-15 01:35:13 postgresql 8.01, plpgsql
Previous Message Robert.Farrugia 2005-03-14 17:53:03 Inserting values in arrays