Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application_name to PostgreSQL driver connection #798

Closed
wants to merge 1 commit into from

Conversation

davividal
Copy link
Contributor

PostgreSQL allows the user to set the application_name is connecting
to database. It is useful for monitoring purposes.
Currently one could just manually add 'application_name=foo' to DSN,
but having a parameter eases setting it using DoctrineBundle.

PostgreSQL allows the user to set the application_name is connecting
to database. It is useful for monitoring purposes.
Currently one could just manually add 'application_name=foo' to DSN,
but having a parameter eases setting it using DoctrineBundle.
@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-1146

We use Jira to track the state of pull requests and the versions they got
included in.

davividal added a commit to malapronta/DoctrineBundle that referenced this pull request Feb 4, 2015
This PR is dependant upon doctrine/dbal#798 .
PostgreSQL allows the user to set the application_name is connecting
to database. It is useful for monitoring purposes.
Currently one could just manually add 'application_name=foo' to DSN
by appending it to dbname, like:

dbname:   %database_name% application_name=foo

It works but having a parameter eases setting it.
@davividal
Copy link
Contributor Author

Any thoughts on this?

@deeky666
Copy link
Member

Merged manually via f7bf60a
Use case is legit, will land in 2.6. Thanks @davividal !

@deeky666 deeky666 closed this Jan 10, 2016
@Ocramius Ocramius changed the title Add application_name to PostgreSQL driver Add application_name to PostgreSQL driver connection Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants