The dtrace probes documentation [1] spells each probe name with dashes
(transaction-start, transaction-commit, etc.). Yet as far as I can see,
dtrace only works if you spell the probe names with double underscores
(transaction__start, transaction__commit, etc.). Why the discrepancy?
Obvious patch attached, in case this needs to be changed.
- Josh / eggyknap
1: http://www.postgresql.org/docs/8.4/static/dynamic-trace.html
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml
index ea8b017..672a1fe 100644
--- a/doc/src/sgml/monitoring.sgml
+++ b/doc/src/sgml/monitoring.sgml
@@ -1070,95 +1070,95 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
tbody
row
- entrytransaction-start/entry
+ entrytransaction__start/entry
entry(LocalTransactionId)/entry
entryProbe that fires at the start of a new transaction.
arg0 is the transaction id./entry
/row
row
- entrytransaction-commit/entry
+ entrytransaction__commit/entry
entry(LocalTransactionId)/entry
entryProbe that fires when a transaction completes successfully.
arg0 is the transaction id./entry
/row
row
- entrytransaction-abort/entry
+ entrytransaction__abort/entry
entry(LocalTransactionId)/entry
entryProbe that fires when a transaction completes unsuccessfully.
arg0 is the transaction id./entry
/row
row
- entryquery-start/entry
+ entryquery__start/entry
entry(const char *)/entry
entryProbe that fires when the processing of a query is started.
arg0 is the query string./entry
/row
row
- entryquery-done/entry
+ entryquery__done/entry
entry(const char *)/entry
entryProbe that fires when the processing of a query is complete.
arg0 is the query string./entry
/row
row
- entryquery-parse-start/entry
+ entryquery__parse__start/entry
entry(const char *)/entry
entryProbe that fires when the parsing of a query is started.
arg0 is the query string./entry
/row
row
- entryquery-parse-done/entry
+ entryquery__parse__done/entry
entry(const char *)/entry
entryProbe that fires when the parsing of a query is complete.
arg0 is the query string./entry
/row
row
- entryquery-rewrite-start/entry
+ entryquery__rewrite__start/entry
entry(const char *)/entry
entryProbe that fires when the rewriting of a query is started.
arg0 is the query string./entry
/row
row
- entryquery-rewrite-done/entry
+ entryquery__rewrite__done/entry
entry(const char *)/entry
entryProbe that fires when the rewriting of a query is complete.
arg0 is the query string./entry
/row
row
- entryquery-plan-start/entry
+ entryquery__plan__start/entry
entry()/entry
entryProbe that fires when the planning of a query is started./entry
/row
row
- entryquery-plan-done/entry
+ entryquery__plan__done/entry
entry()/entry
entryProbe that fires when the planning of a query is complete./entry
/row
row
- entryquery-execute-start/entry
+ entryquery__execute__start/entry
entry()/entry
entryProbe that fires when the execution of a query is started./entry
/row
row
- entryquery-execute-done/entry
+ entryquery__execute__done/entry
entry()/entry
entryProbe that fires when the execution of a query is complete./entry
/row
row
- entrystatement-status/entry
+ entrystatement__status/entry
entry(const char *)/entry
entryProbe that fires anytime the server process updates its
structnamepg_stat_activity/.structfieldcurrent_query/ status.
arg0 is the new status string./entry
/row
row
- entrycheckpoint-start/entry
+ entrycheckpoint__start/entry
entry(int)/entry
entryProbe that fires when a checkpoint is started.
arg0 holds the bitwise flags used to distinguish different checkpoint
types, such as shutdown, immediate or force./entry
/row
row
- entrycheckpoint-done/entry
+ entrycheckpoint__done/entry
entry(int, int, int, int, int)/entry
entryProbe that fires when a checkpoint is complete.
(The probes listed next fire in sequence during checkpoint processing.)
@@ -1167,20 +1167,20 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
removed and recycled respectively./entry
/row
row
- entryclog-checkpoint-start/entry
+ entryclog__checkpoint__start/entry
entry(bool)/entry
entryProbe that fires when the CLOG portion of a checkpoint is started.
arg0 is true for normal checkpoint, false for shutdown
checkpoint./entry
/row
row
- entryclog-checkpoint-done/entry
+ entryclog__checkpoint__done/entry
entry(bool)/entry
entryProbe that fires when the CLOG portion of a checkpoint is
-