Re: PL/pgSQL: dynamic tablename

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/pgSQL: dynamic tablename
Date: 2002-01-20 21:36:04
Message-ID: 5548.1011562564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl> writes:
> Does anybody have any suggestion on how to use a dynamic tablename
> passed as an attribute in a function?

You need to use EXECUTE. See past discussions.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Boyle (Roselink) 2002-01-20 21:47:38 Re: PL/pgSQL: dynamic tablename
Previous Message Harald Massa 2002-01-20 21:26:34 row based security ... was Different views with same name for different users