Re: Getting closer with functions, but...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Holmes <sholmes(at)pacificnet(dot)net>
Cc: pgsql-general(at)postgresql(dot)org (PG-General)
Subject: Re: Getting closer with functions, but...
Date: 2000-07-13 04:32:11
Message-ID: 27122.963462731@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Holmes <sholmes(at)pacificnet(dot)net> writes:
> Is there a syntax that will allow me to build an sql statement for use
> in theis funcation (ie delete from stxnoted where filename = fname and
> record_key = rkey).

Not in plpgsql, because it wants to precompile the queries, so you can't
determine table or field names at runtime, just substitute values for
constants.

pltcl doesn't precompile, so it should do what you want (at a price in
performance of course). I think plperl works like pltcl, if you prefer
perl over tcl.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Erich 2000-07-13 04:40:31 References on functions?
Previous Message Scott Holmes 2000-07-13 03:58:11 Getting closer with functions, but...