-
+
Monitoring Database Activity
- Add the probe definitons to src/backend/src/utils/probes.d>
+ Add the probe definitions to src/backend/utils/probes.d>
Add probe transaction__start(int);
to
- src/backend/src/utils/probes.d>, and it should look like the following:
+ src/backend/utils/probes.d>, and it should look like the following:
provider postgresql {
...
At compile time, transaction__start is converted to a macro called
TRACE_POSTGRESQL_TRANSACTION_START, and it resides in
- src/backend/src/utils/probes.h>. Before recompiling, add
+ src/backend/utils/probes.h>. Before recompiling, add
the single line macro to the appropriate location in the source code.
In this case, it looks like the following: