PostgreSQL application_name |
PostgreSQL allows you to name the connections to the application_name. Thus, the database log can I know which application ran that query. In config/database.php does not have this parameter, there some other way that I can use to set this parameter?
https://www.postgresql.org/docs/9.2/stat...ATION-NAME
this is a bit old topic without discussion but also I was looking for this, is anyone figure out how to handle application name? I have multiple services run over CI framework I want to assign their hostnames as app name
Try:
PHP Code: public array $default = [
05-04-2024, 02:05 PM
(This post was last modified: 05-04-2024, 02:06 PM by Bosborne. Edit Reason: Add URL ) (05-04-2024, 12:16 PM)byrallier Wrote: mr: https://github.com/codeigniter4/CodeIgniter4/pull/8852 Wouldn’t you need to get php PDO to support this first? The php manual does not show that as a DSN element for PostgresQL https://www.php.net/manual/en/ref.pdo-pg...ection.php |
Welcome Guest, Not a member yet? Register Sign In |