Skip to content

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
@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.

2 participants