note 121791 deleted from ref.pdo-pgsql.connection by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:31:49 +0000 |
| Subject: | note 121791 deleted from ref.pdo-pgsql.connection by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215186@lists.php.net to get a copy of this message | ||
Note Submitter: Ivan Bragin (aywan at aywan dot ru)
----
How to add application name to dsn string.
You can make query like "SET application_name=...." or just add something to dsn string:
$dbh = new PDO('....;options=--application_name=WEB_APPLICATION');
We have a lot of php apps and it's hard to understand what app made slow query. But this small
hack help us.