Welcome Guest, Not a member yet? Register   Sign In
PostgreSQL application_name
#1
Information 

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
Reply
#2

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
Reply
#3

Try:
PHP Code:
    public array $default = [
        'DSN'=> "host=localhost port=5432 user=postgres password='postgres' dbname=test options='--application_name=CI4'",
        // ...
    ]; 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB