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

Connection in read-only mode #14

Open
rac021 opened this issue Feb 20, 2020 · 8 comments
Open

Connection in read-only mode #14

rac021 opened this issue Feb 20, 2020 · 8 comments

Comments

@rac021
Copy link

rac021 commented Feb 20, 2020

Hi,

Is there a way to put the connection in read-only mode ?

Thank's

@BillyYccc
Copy link
Contributor

What is connection read-only mode in Postgres? Do you mean read-only transactions(https://www.postgresql.org/docs/current/sql-set-transaction.html)?

@rac021
Copy link
Author

rac021 commented Feb 21, 2020

Yes, this is what I mean

@BillyYccc
Copy link
Contributor

Have you tried scheduling a query to control it directly?

@rac021
Copy link
Author

rac021 commented Feb 21, 2020

What I am currently doing is adding "SET TRANSACTION READ ONLY" for each Sql query.
I want to do this using the client API. Is it possible ?

Thank's

@BillyYccc
Copy link
Contributor

There's no specific API for this, I wonder does it make any difference between calling such an API and a query :-)

@rac021
Copy link
Author

rac021 commented Feb 21, 2020

I mean , open transations in read only mode using reactive-pg-client ;-)

@BillyYccc
Copy link
Contributor

I agreed we could add such APIs for the transactions characteristics, you can check the eclipse-vertx/vertx-sql-client#432

@rac021
Copy link
Author

rac021 commented Feb 21, 2020

It would be interesting ( at least for me :-) )

Thank you

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

No branches or pull requests

2 participants