sauraww opened a new pull request, #107:
URL: https://github.com/apache/casbin-rust-diesel-adapter/pull/107

   DieselAdapter::new() always issues CREATE TABLE IF NOT EXISTS on 
construction, which Postgres rejects with a read_only_sql_transaction error on 
any connection that is in recovery (a streaming replica or standby), even when 
casbin_rule already exists there via replication.
   
   new_read_only builds the same pool but skips the schema bootstrap entirely, 
so it can be used for enforcement-only instances reading policy from a replica 
in an active/passive or read-replica deployment.
   
   Fixes casbin-rs/diesel-adapter#106


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to