*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.61 2010/03/11 09:26:59 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.62 2010/04/06 10:50:57 sriggs Exp $
*
*-------------------------------------------------------------------------
*/
if (TransactionIdPrecedes(xid, snapshotOldestActiveXid))
return;
- ereport(trace_recovery(DEBUG4),
- (errmsg("record known xact %u latestObservedXid %u",
- xid, latestObservedXid)));
+ elog(trace_recovery(DEBUG4), "record known xact %u latestObservedXid %u",
+ xid, latestObservedXid);
/*
* When a newly observed xid arrives, it is frequently the case that it is
while (TransactionIdPrecedesOrEquals(next_expected_xid, xid))
{
if (TransactionIdPrecedes(next_expected_xid, xid))
- ereport(trace_recovery(DEBUG4),
- (errmsg("recording unobserved xid %u (latestObservedXid %u)",
- next_expected_xid, latestObservedXid)));
+ elog(trace_recovery(DEBUG4),
+ "recording unobserved xid %u (latestObservedXid %u)",
+ next_expected_xid, latestObservedXid);
KnownAssignedXidsAdd(&next_expected_xid, 1);
/*
{
KnownAssignedXidsDisplay(LOG);
LWLockRelease(ProcArrayLock);
- ereport(ERROR,
- (errcode(ERRCODE_OUT_OF_MEMORY),
- errmsg("too many KnownAssignedXids")));
+ elog(ERROR, "too many KnownAssignedXids (%u)", procArray->maxKnownAssignedXids);
}
result = (TransactionId *) hash_search(KnownAssignedXidsHash, &xids[i], HASH_ENTER,
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.15 2010/03/11 09:10:25 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.16 2010/04/06 10:50:57 sriggs Exp $
*
*-------------------------------------------------------------------------
*/
recptr = XLogInsert(RM_STANDBY_ID, XLOG_RUNNING_XACTS, rdata);
if (CurrRunningXacts->subxid_overflow)
- ereport(trace_recovery(DEBUG2),
- (errmsg("snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u next xid %u)",
+ elog(trace_recovery(DEBUG2),
+ "snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u next xid %u)",
CurrRunningXacts->xcnt,
recptr.xlogid, recptr.xrecoff,
CurrRunningXacts->oldestRunningXid,
- CurrRunningXacts->nextXid)));
+ CurrRunningXacts->nextXid);
else
- ereport(trace_recovery(DEBUG2),
- (errmsg("snapshot of %u running transaction ids (lsn %X/%X oldest xid %u next xid %u)",
+ elog(trace_recovery(DEBUG2),
+ "snapshot of %u running transaction ids (lsn %X/%X oldest xid %u next xid %u)",
CurrRunningXacts->xcnt,
recptr.xlogid, recptr.xrecoff,
CurrRunningXacts->oldestRunningXid,
- CurrRunningXacts->nextXid)));
+ CurrRunningXacts->nextXid);
}