|
1 | 1 | /****************************************************************************
|
2 | 2 | * pending.c
|
3 |
| - * $Id: pending.c,v 1.7 2002/11/06 17:50:53 momjian Exp $ |
| 3 | + * $Id: pending.c,v 1.8 2002/11/22 16:04:41 momjian Exp $ |
4 | 4 | *
|
5 | 5 | * This file contains a trigger for Postgresql-7.x to record changes to tables
|
6 | 6 | * to a pending table for mirroring.
|
@@ -218,7 +218,7 @@ storePending(char *cpTableName, HeapTuple tBeforeTuple,
|
218 | 218 | }
|
219 | 219 |
|
220 | 220 | #if defined DEBUG_OUTPUT
|
221 |
| - elog(NOTICE, "DOne storing keyinfo"); |
| 221 | + elog(NOTICE, "Done storing keyinfo"); |
222 | 222 | #endif
|
223 | 223 |
|
224 | 224 | return iResult;
|
@@ -253,7 +253,7 @@ storeKeyInfo(char *cpTableName, HeapTuple tTupleData,
|
253 | 253 | return -1;
|
254 | 254 | }
|
255 | 255 | #if defined DEBUG_OUTPUT
|
256 |
| - elog(NOTICE, cpKeyData); |
| 256 | + elog(NOTICE, "%s", cpKeyData); |
257 | 257 | #endif
|
258 | 258 | saPlanData[0] = PointerGetDatum(cpKeyData);
|
259 | 259 |
|
@@ -437,7 +437,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
|
437 | 437 | cpFieldName = DatumGetPointer(NameGetDatum(&tTupleDesc->attrs
|
438 | 438 | [iColumnCounter - 1]->attname));
|
439 | 439 | #if defined DEBUG_OUTPUT
|
440 |
| - elog(NOTICE, cpFieldName); |
| 440 | + elog(NOTICE, "%s", cpFieldName); |
441 | 441 | #endif
|
442 | 442 | while (iDataBlockSize - iUsedDataBlock < strlen(cpFieldName) + 6)
|
443 | 443 | {
|
@@ -465,7 +465,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
|
465 | 465 |
|
466 | 466 | }
|
467 | 467 | #if defined DEBUG_OUTPUT
|
468 |
| - elog(NOTICE, cpFieldData); |
| 468 | + elog(NOTICE, "%s", cpFieldData); |
469 | 469 | elog(NOTICE, "Starting format loop");
|
470 | 470 | #endif
|
471 | 471 | while (*cpUnFormatedPtr != 0)
|
@@ -499,7 +499,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
|
499 | 499 | sprintf(cpFormatedPtr, "' ");
|
500 | 500 | iUsedDataBlock = iUsedDataBlock + 2;
|
501 | 501 | #if defined DEBUG_OUTPUT
|
502 |
| - elog(NOTICE, cpDataBlock); |
| 502 | + elog(NOTICE, "%s", cpDataBlock); |
503 | 503 | #endif
|
504 | 504 |
|
505 | 505 | } /* for iColumnCounter */
|
|
0 commit comments