From c111a7211f758dbcc70fb392aa0949748cadb1e4 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Tue, 25 Mar 2008 22:50:27 +0000 Subject: [PATCH] Update documentation for recent DTrace changes. Patch from Robert Lor. --- doc/src/sgml/installation.sgml | 6 +- doc/src/sgml/monitoring.sgml | 206 ++++++++++++++++++++------------- 2 files changed, 131 insertions(+), 81 deletions(-) diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 95a3f10be6..1ed17530ff 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1,4 +1,4 @@ - + <![%standalone-include[<productname>PostgreSQL</>]]> @@ -1193,8 +1193,8 @@ su - postgres <primary>DTrace</primary> </indexterm> Compiles with support for the dynamic tracing tool DTrace. - Operating system support for DTrace is currently only - available in Solaris. + Operating system support for DTrace is currently available in + Solaris and Mac OS X Leopard. </para> <para> diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 4d25b41bfa..a1debcced0 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.55 2007/11/28 15:42:31 petere Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.56 2008/03/25 22:50:27 neilc Exp $ --> <chapter id="monitoring"> <title>Monitoring Database Activity @@ -947,26 +947,26 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid, - A number of trace points, often called probes, are already inserted - into the source code. By default these probes are disabled, and - the user needs to explicitly tell the configure script to make the - probes available in PostgreSQL. + A number of probes or trace points are already inserted + into the source code. By default these probes are not compiled into the + binary, and the user needs to explicitly tell the configure script to make + the probes available in PostgreSQL. - Currently, only the DTrace utility is supported, which is only available - on Solaris Express and Solaris 10+. It is expected that DTrace will - be available in the future on FreeBSD and Mac OS X. + Currently, only the DTrace utility is supported, which is available + on Solaris Express, Solaris 10, and Mac OS X Leopard. It is expected that + DTrace will be available in the future on FreeBSD. Supporting other dynamic tracing utilities is theoretically possible by - changing the definitions for the PG_TRACE macros in - src/include/pg_trace.h. + changing the definitions for the macros in + src/include/utils/probes.h. Compiling for Dynamic Tracing - By default, trace points are disabled, so you will need to + By default, probes are not available, so you will need to explicitly tell the configure script to make the probes available in PostgreSQL. To include DTrace support specify