You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, I set a session config variable. Then, I twice run a query that errors (here, select asdf), while restarting edgedb between commands so that the CLI needs to reconnect. If I do this twice in a row, the session config gets lost!
If I only do it once, then it manages to keep the config.
This is probably somewhat marginal for end users, but I hit it in my development workflow because I'm constantly running queries that don't work and then restarting the server to run a hopefully fixed version!
_localdev:edgedb> configure session set apply_access_policies := false;
OK: CONFIGURE SESSION
_localdev:edgedb> select cfg::Config.apply_access_policies;
[false]
_localdev:edgedb> select asdf;
Reconnecting...
error: InvalidReferenceError: object type or alias 'default::asdf' does not exist
_localdev:edgedb> select asdf;
Reconnecting...
error: InvalidReferenceError: object type or alias 'default::asdf' does not exist
_localdev:edgedb> select cfg::Config.apply_access_policies;
[true]
The text was updated successfully, but these errors were encountered:
Aha! And it also loses the automatically set session_idle_transaction_timeout! I've been haunted by session idle transaction timeouts for years, and I had still been getting it even after we were pretty sure we had squashed it in the server!
Here, I set a session config variable. Then, I twice run a query that errors (here,
select asdf
), while restarting edgedb between commands so that the CLI needs to reconnect. If I do this twice in a row, the session config gets lost!If I only do it once, then it manages to keep the config.
This is probably somewhat marginal for end users, but I hit it in my development workflow because I'm constantly running queries that don't work and then restarting the server to run a hopefully fixed version!
The text was updated successfully, but these errors were encountered: