Last updated on 2/24/07 by robert.lor@sun.com

1) Create the "postgres" user and group if they don't already exist.

Example: 

# groupadd postgres
# useradd -c 'PostgreSQL user' -d /export/home/postgres -g postgres -m -s 
/bin/bash postgres

2) Create /usr/local directory (if it does not already exist), and give write
   permission to non-root user.

Example:

# mkdir /usr/local
# chmod 777 /usr/local

3) Login as "postgres" user and uncompress and extract the tarball into
   /usr/local.

Example:

# su - postgres
$ cd /usr/local (and download the tarball to this directory)
$ gunzip postgresql-8.2.3-dtrace-x86-beta.tar.gz
$ tar -xvf postgresql-8.2.3-dtrace-x86-beta.tar

4) Add /usr/local/postgres8.2/bin to the PATH environment variable.

You should now be able to run PostgreSQL with the embedded DTrace probes enabled.

For more information about using the probes, visit http://www.postgresql.org/docs/8.2/static/dynamic-trace.html

You may also want to check out the PostgreSQL GUI monitoring tool. This tool displays the data in graphical format using the embedded DTrace probes. The binary can be downloaded from http://pgfoundry.org/frs/?group_id=1000163&release_id=774

