-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
69553: sessiondata: fix ListSessions with SET LOCAL / SET ROLE r=rafiss a=otan Previously, two incorrect phenomena was incorrect due to recent changes: * SET ROLE would report the user the current session was impersonated as, rather than the user who was logged in. The latter seems more correct to report here. * There is a race between a BEGIN/COMMIT/ROLLBACK and listing all sessions using ListSessions as they both try to access the stack. This is both fixed by: * Changing the returned user of SET ROLE to be the SessionUser. * Introducing a `base` method to SessionDataStack, which returns the base of the stack. This is *always* set, so allow accordingly. Release justification: fix to new functionality Resolves: #69508 Release note: None Co-authored-by: Oliver Tan <[email protected]>
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters