sql: 23.2 performance regression caused by role existence checks #112102
Labels
branch-master
Failures and bugs on the master branch.
branch-release-23.2
Used to mark GA and release blockers, technical advisories, and bugs for 23.2
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
GA-blocker
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
In 12ec26f, we started to check for the existence of a role whenever a privilege for the public role was checked. This can hapen multiple times during some pg_catalog queries, so it introduced a performance regression.
The change in #111819 revealed the regression - once the tests were changed to use a non-root user (which is how most users will interact with CRDB), the number of round trips required by most of the queries increased.
Jira issue: CRDB-32236
The text was updated successfully, but these errors were encountered: