Skip to content

How to set the "target_session_attrs" attribute for postgresql connection ? #1660

Answered by ostrolucky
articque asked this question in Q&A
Discussion options

You must be logged in to vote

This is not supported because it's not supported by DBAL, see here https://github.com/doctrine/dbal/blob/3.6.x/src/Driver/PgSQL/Driver.php You should add this feature request there.

You are always free to create your own instance of the AbstractPostgreSQLDriver where you can put to pg_connect whatever you want though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by articque
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants