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

[10.x] Set application_name and character set as PostgreSQL DSN string #51985

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

sunaoka
Copy link
Contributor

@sunaoka sunaoka commented Jul 2, 2024

This pull request resolves the following

The following queries are executed when you set the character set and application name in PostgreSQL, respectively.

Set name to 'charset'
set application name to 'Application Name'

However, PostgreSQL allows you to set each in a DSN string.

pgsql:host=foo;dbname='bar';client_encoding='utf8';application_name='Laravel App'

This prevents the above two queries from being executed every time another query is executed.

@driesvints driesvints changed the title Set application_name and character set as PostgreSQL DSN string. [10.x] Set application_name and character set as PostgreSQL DSN string Jul 2, 2024
@taylorotwell taylorotwell merged commit 6230d56 into laravel:10.x Jul 3, 2024
26 checks passed
@sunaoka sunaoka deleted the feature/postgres-dns branch July 3, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants