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

Configure session variables in ALTER ROLE #55262

Closed
vy-ton opened this issue Oct 6, 2020 · 2 comments
Closed

Configure session variables in ALTER ROLE #55262

vy-ton opened this issue Oct 6, 2020 · 2 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Comments

@vy-ton
Copy link
Contributor

vy-ton commented Oct 6, 2020

Postgres supports setting session variables for a specific role

[email protected]:57852/movr> alter role vy statement_timeout=10;
invalid syntax: statement ignored: at or near "set": syntax error
SQLSTATE: 42601
DETAIL: source SQL:
alter role vy set idle_in_transaction_session_timeout=10
              ^
HINT: try \h ALTER ROLE

Desired behavior
Configure statement_timeout, idle_in_session_timeout, or idle_in_transaction_session_timeout for different roles associated with different workloads.

@blathers-crl
Copy link

blathers-crl bot commented Oct 6, 2020

Hi @vy-ton, I've guessed the C-ategory of your issue and suitably labeled it. Please re-label if inaccurate.

While you're here, please consider adding an A- label to help keep our repository tidy.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Oct 6, 2020
@vy-ton
Copy link
Contributor Author

vy-ton commented Oct 6, 2020

Duplicate of #21151

@vy-ton vy-ton marked this as a duplicate of #21151 Oct 6, 2020
@vy-ton vy-ton closed this as completed Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Projects
None yet
Development

No branches or pull requests

1 participant