Skip to content

Behaviour like JDBC's "targetServerType" #2186

Answered by jackc
cemremengu asked this question in Q&A
Discussion options

You must be logged in to vote

I think Config.ValidateConnect may be able to do what you want. It is used by pgx to mimic libpq target_session_attrs for read-write, read-only, primary, standby, and prefer-standby.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cemremengu
Comment options

Answer selected by cemremengu
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