pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lucas@presserv.org
To: pgsql-sql@postgresql.org
Subject: Generic Function
Date: Mon, 14 Mar 2005 15:15:55 -0300
Message-ID: <20050314151555.6kp8nfclzy5cogg0@www.presserv.org> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <20050314151555.6kp8nfclzy5cogg0@www.presserv.org>
Permalink:  ../20050314151555.6kp8nfclzy5cogg0@www.presserv.org/
Also on:    postgresql.org/message-id/20050314151555.6kp8nfclzy5cogg0@www.presserv.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lucas@presserv.org
  Subject: Re: Generic Function
  In-Reply-To: <20050314151555.6kp8nfclzy5cogg0@www.presserv.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox