Re: [SQL] where is this problem (trigger)

2004-05-15 Thread Theodore Petrosky
Great I got the double quotes in the trigger... like this: CREATE FUNCTION notify_jobinfo() RETURNS "trigger" AS ' BEGIN EXECUTE ''NOTIFY "''||TG_RELNAME||''_''||NEW.jobnumber||''"''; RETURN NEW; END ' LANGUAGE plpgsql; and it works great... however, i did a pg_dump of the db to back it up.

Re: [SQL] where is this problem (trigger)

2004-05-15 Thread Theodore Petrosky
Ignore that last post of course I have a production machine and a development machine and I should have updated the development machine before opening my mouth... Everything works just fine thanks. Ted --- Theodore Petrosky <[EMAIL PROTECTED]> wrote: > Great I got the double quotes in t

Re: [SQL] where is this problem (trigger)

2004-05-15 Thread Jean-Luc Lachance
Have noticed it is not the same function... Theodore Petrosky wrote: Great I got the double quotes in the trigger... like this: CREATE FUNCTION notify_jobinfo() RETURNS "trigger" AS ' BEGIN EXECUTE ''NOTIFY "''||TG_RELNAME||''_''||NEW.jobnumber||''"''; RETURN NEW; END ' LANGUAGE plpgsql; and it