mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
DTrace support, with a small initial set of probes
by Robert Lor
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.223 2006/07/14 14:52:17 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.224 2006/07/24 16:32:44 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1384,6 +1384,8 @@ StartTransaction(void)
|
||||
|
||||
XactLockTableInsert(s->transactionId);
|
||||
|
||||
PG_TRACE1 (transaction__start, s->transactionId);
|
||||
|
||||
/*
|
||||
* set transaction_timestamp() (a/k/a now()). We want this to be the
|
||||
* same as the first command's statement_timestamp(), so don't do a
|
||||
@ -1535,6 +1537,8 @@ CommitTransaction(void)
|
||||
LWLockRelease(ProcArrayLock);
|
||||
}
|
||||
|
||||
PG_TRACE1 (transaction__commit, s->transactionId);
|
||||
|
||||
/*
|
||||
* This is all post-commit cleanup. Note that if an error is raised here,
|
||||
* it's too late to abort the transaction. This should be just
|
||||
@ -1931,6 +1935,8 @@ AbortTransaction(void)
|
||||
LWLockRelease(ProcArrayLock);
|
||||
}
|
||||
|
||||
PG_TRACE1 (transaction__abort, s->transactionId);
|
||||
|
||||
/*
|
||||
* Post-abort cleanup. See notes in CommitTransaction() concerning
|
||||
* ordering.
|
||||
|
Reference in New Issue
Block a user