Generic Function - Mailing list pgsql-sql

From lucas@presserv.org
Subject Generic Function
Date
Msg-id 20050314151555.6kp8nfclzy5cogg0@www.presserv.org
Whole thread Raw
List 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


pgsql-sql by date:

Previous
From: Robert.Farrugia@go.com.mt
Date:
Subject: Inserting values in arrays
Next
From: Timothy Smith
Date:
Subject: postgresql 8.01, plpgsql