pg_trace

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Enable tracing a PostgreSQL connection
<?php pg_trace(    string $filename,    string $mode = "w",    ?PgSql\Connection $connection = null,    int $trace_mode = 0): bool