mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-24 09:46:29 +00:00
First try with role reset (#427)
* First try with role rest * update * extra line * Update src/server.rs Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com> * Update tests/ruby/misc_spec.rb Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com> --------- Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com>
This commit is contained in:
@@ -963,6 +963,7 @@ impl Server {
|
||||
if self.needs_cleanup {
|
||||
warn!("Server returned with session state altered, discarding state");
|
||||
self.query("DISCARD ALL").await?;
|
||||
self.query("RESET ROLE").await?;
|
||||
self.needs_cleanup = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user