@@ -42,7 +42,7 @@ check_primary_key()
42
42
int nargs ;/* # of args specified in CREATE TRIGGER */
43
43
char * * args ;/* arguments: column names and table name */
44
44
int nkeys ;/* # of key columns (= nargs / 2) */
45
- char * * kvals ;/* key values */
45
+ Datum * kvals ;/* key values */
46
46
char * relname ;/* referenced relation name */
47
47
Relation rel ;/* triggered relation */
48
48
HeapTuple tuple = NULL ;/* tuple to return */
@@ -107,7 +107,7 @@ check_primary_key()
107
107
* We use SPI plan preparation feature, so allocate space to place key
108
108
* values.
109
109
*/
110
- kvals = (char * * )palloc (nkeys * sizeof (char * ));
110
+ kvals = (Datum * )palloc (nkeys * sizeof (Datum ));
111
111
112
112
/*
113
113
* Construct ident string as TriggerName $ TriggeredRelationId and try
@@ -228,7 +228,7 @@ check_foreign_key()
228
228
int nrefs ;/* number of references (== # of plans) */
229
229
char action ;/* 'R'estrict | 'S'etnull | 'C'ascade */
230
230
int nkeys ;/* # of key columns */
231
- char * * kvals ;/* key values */
231
+ Datum * kvals ;/* key values */
232
232
char * relname ;/* referencing relation name */
233
233
Relation rel ;/* triggered relation */
234
234
HeapTuple trigtuple = NULL ;/* tuple to being changed */
@@ -310,7 +310,7 @@ check_foreign_key()
310
310
* We use SPI plan preparation feature, so allocate space to place key
311
311
* values.
312
312
*/
313
- kvals = (char * * )palloc (nkeys * sizeof (char * ));
313
+ kvals = (Datum * )palloc (nkeys * sizeof (Datum ));
314
314
315
315
/*
316
316
* Construct ident string as TriggerName $ TriggeredRelationId and try
@@ -494,7 +494,7 @@ check_foreign_key()
494
494
elog (WARN ,"%s: tuple referenced in %s" ,
495
495
trigger -> tgname ,relname );
496
496
}
497
- #ifndef REFINT_QUIET
497
+ #ifdef REFINT_VERBOSE
498
498
else
499
499
elog (NOTICE ,"%s: %d tuple(s) of %s are %s" ,
500
500
trigger -> tgname ,SPI_processed ,relname ,