I use PDO in PHP to connect to a PostgreSQL database. Does it allow setting the application name when making this connection?
try {
$conn = new PDO ( 'pgsql:host=' . $host . ';dbname=' . $dbname, $user, $pwd );
//$conn->setAttribute ( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
} catch ( PDOException $e ) {
showError ( "Error", 2 );
}
