/****************************************************************************
* pending.c
- * $Id: pending.c,v 1.8 2002/11/22 16:04:41 momjian Exp $
+ * $Id: pending.c,v 1.9 2002/11/22 16:25:29 tgl Exp $
*
* This file contains a trigger for Postgresql-7.x to record changes to tables
* to a pending table for mirroring.
return -1;
}
#if defined DEBUG_OUTPUT
- elog(NOTICE, "%s", cpKeyData);
+ elog(NOTICE, "KeyData: %s", cpKeyData);
#endif
saPlanData[0] = PointerGetDatum(cpKeyData);
return -1;
}
#if defined DEBUG_OUTPUT
- elog(NOTICE, "INSERT SUCCESFULL");
+ elog(NOTICE, "Insert successful");
#endif
return 0;
return -1;
}
#if defined DEBUG_OUTPUT
- elog(NOTICE, "INSERT SUCCESFULL");
+ elog(NOTICE, "Insert successful");
#endif
return 0;
cpFieldName = DatumGetPointer(NameGetDatum(&tTupleDesc->attrs
[iColumnCounter - 1]->attname));
#if defined DEBUG_OUTPUT
- elog(NOTICE, "%s", cpFieldName);
+ elog(NOTICE, "FieldName: %s", cpFieldName);
#endif
while (iDataBlockSize - iUsedDataBlock < strlen(cpFieldName) + 6)
{
}
#if defined DEBUG_OUTPUT
- elog(NOTICE, "%s", cpFieldData);
+ elog(NOTICE, "FieldData: %s", cpFieldData);
elog(NOTICE, "Starting format loop");
#endif
while (*cpUnFormatedPtr != 0)
sprintf(cpFormatedPtr, "' ");
iUsedDataBlock = iUsedDataBlock + 2;
#if defined DEBUG_OUTPUT
- elog(NOTICE, "%s", cpDataBlock);
+ elog(NOTICE, "DataBlock: %s", cpDataBlock);
#endif
} /* for iColumnCounter */
GetCurrentTransactionId(), deleted, rel->rd_id, okey);
if (debug)
- elog(DEBUG3, sql);
+ elog(DEBUG3, "sql: %s", sql);
ret = SPI_exec(sql, 0);
deleted, okey);
if (debug)
- elog(DEBUG3, sql);
+ elog(DEBUG3, "sql: %s", sql);
ret = SPI_exec(sql, 0);
rel->rd_id, GetCurrentTransactionId(), okey);
if (debug)
- elog(DEBUG3, sql);
+ elog(DEBUG3, "sql: %s", sql);
ret = SPI_exec(sql, 0);
* MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.26 2002/10/19 22:10:58 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpython/plpython.c,v 1.27 2002/11/22 16:25:30 tgl Exp $
*
*********************************************************************
*/
RERAISE_EXC();
}
- elog(level, sv);
+ elog(level, "%s", sv);
RESTORE_EXC();
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.66 2002/10/19 22:10:58 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.67 2002/11/22 16:25:32 tgl Exp $
*
**********************************************************************/
* and return to the caller (if not catched)
************************************************************/
UTF_BEGIN;
- elog(level, UTF_U2E(argv[2]));
+ elog(level, "%s", UTF_U2E(argv[2]));
UTF_END;
memcpy(&Warn_restart, &save_restart, sizeof(Warn_restart));
return TCL_OK;