sql: set session authorization 'foo' unsupported #40283
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
X-anchored-telemetry
The issue number is anchored by telemetry references.
SET SESSION AUTHORIZATION DEFAULT
is supported in 19.2 and onward for compatibility, but notSET SESSION AUTHORIZATION 'foo'
. The former is a no-op, the latter is not implemented yet.CockroachDB does support
SET ROLE ...
, which is a command that just changes the "current user."SET SESSION AUTHORIZATION ...
on the other hand, changes both the "current user" and the "session user."To implement this, CockroachDB will need to keep track of 3 different usernames for the session:
https://www.postgresql.org/docs/current/sql-set-session-authorization.html
When we add support, make sure to address #105136
Jira issue: CRDB-5553
The text was updated successfully, but these errors were encountered: