From: Kyle <kyle@actarg.com>
To: gry@ll.mit.edu
Cc: pgsql-sql@postgresql.org
Subject: Re: Daily Digest V1 #282
Date: Wed, 28 Feb 2001 16:34:40 -0700
Message-ID: <3A9D8B10.8E1DDA92@actarg.com> (raw)
References: <200102282320.f1SNKUx32030@mail.postgresql.org>
>
> create trigger run_changed_tr after update on runs for each row
> execute procedure run_changed();
>
> BUT, when I update the table, I get:
> ERROR: parser: parse error at or near "$1"
>
> It looks like the *name* (or it's alias here: $1.run_name), not the *value* of the variable nm,
> is passwd to the notify command. Since notify only takes a name, not a string,
> I don't see how to proceed.
>
> Is there some way in plsql to construct a string and have it executed in sql?
>
> disappointed in plsql,
> George
>
I don't know much about notify, but I know you can build arbitrary SQL strings in PL/TCL. Have you
tried that?
I use a combination of plpgsql and pltcl in my implementation because each one has it
strengths/weaknesses.
Attachments:kyle.vcf (text/x-vcard, 184B) download
begin:vcard
n:Bateman;Kyle
x-mozilla-html:FALSE
org:Action Target Inc.
adr:;;;;;;
version:2.1
email;internet:kyle@actarg.com
title:President
x-mozilla-cpt:;0
fn:Kyle Bateman
end:vcard
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: kyle@actarg.com, gry@ll.mit.edu
Subject: Re: Daily Digest V1 #282
In-Reply-To: <3A9D8B10.8E1DDA92@actarg.com>
References: <200102282320.f1SNKUx32030@mail.postgresql.org> <3A9D8B10.8E1DDA92@actarg.com>
* 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