Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4M4G9A98315 for ; Tue, 22 May 2001 00:16:09 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.10.1/8.10.1) id f4M4Fus29615; Tue, 22 May 2001 00:15:56 -0400 (EDT) From: Bruce Momjian Message-Id: <200105220415.f4M4Fus29615@candle.pha.pa.us> Subject: Re: how to check presence of a function and set permissions? In-Reply-To: "from Tod McQuillin at May 21, 2001 03:54:02 am" To: Tod McQuillin Date: Tue, 22 May 2001 00:15:56 -0400 (EDT) CC: Bruno Boettcher , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200105/234 X-Sequence-Number: 3051 I see EXECUTE in the PL/PgSQL manual. > On Mon, 21 May 2001, Bruno Boettcher wrote: > > > since i am now destroying and recreating my functions at every request > > (due to the fact that pl/psql can't cope with dynamic table names, > > I don't know about the rest of your question but I believe PostgreSQL > supports dynamic queries in plpgsql since v7.1 -- > > EXECUTE 'SELECT * FROM ' || table_name || ' WHERE whatever'; > > However, I do not see it in the documentation, so now I'm not 100% > certain. > -- > Tod McQuillin > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026