5.2 Configuring SQL Profiler

Table of Contents Previous Next


5 Installing the SQL Profiler Plugin : 5.2 Configuring SQL Profiler

1.
Edit the postgresql.conf file on the server you wish to profile, modifying the shared_preload_libraries parameter as shown below:
3.
Using the Query Tool or the psql command line interface, run the sql-profiler.sql script in the database specified as the Maintenance Database on the server you wish to profile. If you are using:
To use the PEM Query Tool to run the script, highlight the name of the maintenance database in the Browser tree control, and navigate through the Tools menu to select Query tool. When the Query Tool opens, use the Open option on the Files menu to open a web browser and navigate to the sql-profiler.sql script. By default, the sql-profiler.sql script is located in the contrib folder, under your Postgres installation.
When the script opens in the SQL Editor panel of the Query Tool, highlight the content of the script in the SQL Editor and select the Execute option from the Query menu (or click the Execute icon) to invoke the script and configure SQL Profiler.
To access SQL Profiler functionality, highlight the name of the database in the PEM Browser tree control; navigate through the Management menu to the SQL Profiler pull-aside menu. Menu options allow you to manage your SQL traces:
Select Create trace… to define a new trace (see Figure 5.7).
Select Open trace… to open an existing trace.
Select Delete trace(s)… to delete one or more traces.
Select View scheduled trace(s)… to review a list of scheduled traces.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\10287ac6\sp_create_new_trace.png

5 Installing the SQL Profiler Plugin : 5.2 Configuring SQL Profiler

Table of Contents Previous Next