I'm trying to develop a script to SET application_name log feature in PHP application.
pg_query("SET application_name = 'Test log line'");
What I tried it above code. But it give following error,
Warning: pg_query(): Query failed: ERROR: unrecognized configuration parameter "application_name" in ...
This means I can't simply execute SET application_name query from pg_query() function.
Can anyone help me to find a way to set this from a PHP script.
Thank you!