Re: Daily Digest V1 #282

From: Kyle <kyle(at)actarg(dot)com>
To: gry(at)ll(dot)mit(dot)edu
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Daily Digest V1 #282
Date: 2001-02-28 23:34:40
Message-ID: 3A9D8B10.8E1DDA92@actarg.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> 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.

Attachment Content-Type Size
kyle.vcf text/x-vcard 185 bytes

Browse pgsql-sql by date

  From Date Subject
Next Message guard 2001-03-01 00:48:09 int2+float8 problems
Previous Message Jacek Zagorski 2001-02-28 23:29:21 Insert into VIEW ???