cockroachdb / cockroachdb/cockroach

sql/sessions: immutable session variable

Open
#144,104 0 comments 0 reactions 0 assignees View on GitHub
C-enhancement T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We should support setting an immutable session variable through a built-in. Once set the value of this session variable cannot be overridden. The built-in could be:
```
set_immut_session_var(varname, val);
```

This would be beneficial for Row Level Security where we prevent overriding a session variable within a session.

Jira issue: CRDB-49229

Epic CRDB-60943

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.