11/****************************************************************************
22 * pending.c
3- * $Id: pending.c,v 1.8 2002/11/22 16:04:41 momjian Exp $
3+ * $Id: pending.c,v 1.9 2002/11/22 16:25:29 tgl Exp $
44 *
55 * This file contains a trigger for Postgresql-7.x to record changes to tables
66 * to a pending table for mirroring.
@@ -253,7 +253,7 @@ storeKeyInfo(char *cpTableName, HeapTuple tTupleData,
253253 return -1 ;
254254 }
255255#if defined DEBUG_OUTPUT
256- elog (NOTICE , "%s" , cpKeyData );
256+ elog (NOTICE , "KeyData: %s" , cpKeyData );
257257#endif
258258 saPlanData [0 ] = PointerGetDatum (cpKeyData );
259259
@@ -268,7 +268,7 @@ storeKeyInfo(char *cpTableName, HeapTuple tTupleData,
268268 return -1 ;
269269 }
270270#if defined DEBUG_OUTPUT
271- elog (NOTICE , "INSERT SUCCESFULL " );
271+ elog (NOTICE , "Insert successful " );
272272#endif
273273
274274 return 0 ;
@@ -351,7 +351,7 @@ storeData(char *cpTableName, HeapTuple tTupleData, TupleDesc tTupleDesc,
351351 return -1 ;
352352 }
353353#if defined DEBUG_OUTPUT
354- elog (NOTICE , "INSERT SUCCESFULL " );
354+ elog (NOTICE , "Insert successful " );
355355#endif
356356
357357 return 0 ;
@@ -437,7 +437,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
437437 cpFieldName = DatumGetPointer (NameGetDatum (& tTupleDesc -> attrs
438438 [iColumnCounter - 1 ]-> attname ));
439439#if defined DEBUG_OUTPUT
440- elog (NOTICE , "%s" , cpFieldName );
440+ elog (NOTICE , "FieldName: %s" , cpFieldName );
441441#endif
442442 while (iDataBlockSize - iUsedDataBlock < strlen (cpFieldName ) + 6 )
443443 {
@@ -465,7 +465,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
465465
466466 }
467467#if defined DEBUG_OUTPUT
468- elog (NOTICE , "%s" , cpFieldData );
468+ elog (NOTICE , "FieldData: %s" , cpFieldData );
469469 elog (NOTICE , "Starting format loop" );
470470#endif
471471 while (* cpUnFormatedPtr != 0 )
@@ -499,7 +499,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
499499 sprintf (cpFormatedPtr , "' " );
500500 iUsedDataBlock = iUsedDataBlock + 2 ;
501501#if defined DEBUG_OUTPUT
502- elog (NOTICE , "%s" , cpDataBlock );
502+ elog (NOTICE , "DataBlock: %s" , cpDataBlock );
503503#endif
504504
505505 } /* for iColumnCounter */
0 commit comments