1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Before row insertion triggers call.

This commit is contained in:
Vadim B. Mikheev
1997-09-04 13:19:01 +00:00
parent 8d6e5f07ff
commit dc13d5d307
2 changed files with 419 additions and 90 deletions

View File

@ -6,7 +6,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.28 1997/09/01 07:59:04 vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.29 1997/09/04 13:18:59 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -608,7 +608,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
skip_tuple = false;
/* BEFORE ROW INSERT Triggers */
if ( rel->trigdesc &&
rel->trigdesc->n_before_row[TRIGGER_ACTION_INSERT] > 0 )
rel->trigdesc->n_before_row[TRIGGER_EVENT_INSERT] > 0 )
{
HeapTuple newtuple;
@ -677,7 +677,7 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
}
/* AFTER ROW INSERT Triggers */
if ( rel->trigdesc &&
rel->trigdesc->n_after_row[TRIGGER_ACTION_INSERT] > 0 )
rel->trigdesc->n_after_row[TRIGGER_EVENT_INSERT] > 0 )
ExecARInsertTriggers (rel, tuple);
}