-
Notifications
You must be signed in to change notification settings - Fork 793
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
Transaction Priority Support #1643
Comments
I'm reluctant to add direct support to non-PostgreSQL features. In most cases it isn't an issue because those features are accessed via the query string passed to |
Understandable.
Yeah that sounds good enough :) |
Done in 9a5ead9. |
Is your feature request related to a problem? Please describe.
CockroachDB supports Transaction Priorities which allow a transaction to be executed before the others, but pgx doesn't seem to support it.
Describe the solution you'd like
I would like for pgx to support setting the transaction priority via
pgx.TxOptions
.Describe alternatives you've considered
It should be possible to manually set the transaction priority after it has been created (
BeginTx
) with theSET TRANSACTION
query but I haven't tried that.Additional context
From what I can tell, Postgres does not support transaction priorities so it might be necessary to check which database pgx is connected to before applying the option (is that even possible though?).
The text was updated successfully, but these errors were encountered: