From: | Morgan Curley <mcurley(at)e4media(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Inserts in triggers |
Date: | 2001-07-25 07:11:48 |
Message-ID: | 4.3.2.7.2.20010725030649.024f7de8@e4media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Are there server setting that need to be set in order to do inserts from
trigger functions?
I have been trying to load data into a table which would trigger an insert
into another table with one or more of the NEW values.
I keep getting: ERROR: parser: parse error at or near "$1"
and the DEBUG log entry points to the line with the insert on it.
i.e.
INSERT events ( event_id, sport_id ,name ,feed_code, start_time,
active_flag, create_timestamp, update_timestamp ) VALUES ( event_id
,sport_id ,feed_code ,feed_code, create_timestamp, 1, create_timestamp,
create_timestamp );
where the values list is a list of predefined vars.
Does anyone see why this statement wouldn't work.
All required fields are present ant not null, all foreign keys exist.
thanks,
Morgan
From | Date | Subject | |
---|---|---|---|
Next Message | Morgan Curley | 2001-07-25 07:12:20 | Inserts in triggers |
Previous Message | newsreader | 2001-07-25 05:34:50 | Re: /var/lib/postgres/data/base/<oid>? |
From | Date | Subject | |
---|---|---|---|
Next Message | Morgan Curley | 2001-07-25 07:12:20 | Inserts in triggers |
Previous Message | Tom Lane | 2001-07-25 06:49:26 | Re: Determining if two subnets intersect |