pg_trace

pg_trace -- Enable tracing a PostgreSQL connection

Description

bool pg_trace ( string pathname [, string mode [, resource connection]])

Filename and mode are the same as in fopen( ) ( mode defaults to 'w' ) , connection specifies the connection to trace and defaults to the last one opened .