pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tod McQuillin <devin@spamcop.net>
Cc: Bruno Boettcher <bboett@erm1.u-strasbg.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to check presence of a function and set permissions?
Date: Tue, 22 May 2001 00:15:56 -0400 (EDT)
Message-ID: <200105220415.f4M4Fus29615@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.33.0105210350290.3446-100000@sysadmin>


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



view thread (3+ messages)

Message-ID: <200105220415.f4M4Fus29615@candle.pha.pa.us>
Permalink:  ../200105220415.f4M4Fus29615@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200105220415.f4M4Fus29615@candle.pha.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, devin@spamcop.net, bboett@erm1.u-strasbg.fr
  Subject: Re: how to check presence of a function and set permissions?
  In-Reply-To: <200105220415.f4M4Fus29615@candle.pha.pa.us>
  References: <Pine.GSO.4.33.0105210350290.3446-100000@sysadmin> <200105220415.f4M4Fus29615@candle.pha.pa.us>

* 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