pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Morgan Curley <mcurley@e4media.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Inserts in triggers
Date: Wed, 25 Jul 2001 03:11:48 -0400
Message-ID: <4.3.2.7.2.20010725030649.024f7de8@e4media.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0107242356340.11857-100000@buymeacorvette.co m>

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

view thread (4+ messages)  latest in thread

Message-ID: <4.3.2.7.2.20010725030649.024f7de8@e4media.com>
Permalink:  ../4.3.2.7.2.20010725030649.024f7de8@e4media.com/
Also on:    postgresql.org/message-id/4.3.2.7.2.20010725030649.024f7de8@e4media.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mcurley@e4media.com, pgsql-general@postgresql.org
  Subject: Re: Inserts in triggers
  In-Reply-To: <4.3.2.7.2.20010725030649.024f7de8@e4media.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