Repository navigation
docs: describe USERENV identifiers and current-role DBA status - #507
Open
Loyal-Young wants to merge 1 commit into
Open
Loyal-Young wants to merge 1 commit into
Loyal-Young wants to merge 1 commit into
Conversation
Fixes IvorySQL#497. Assisted-by: Codex:GPT-6 Percentage of AI-generated code: 100%
|
🚀 IvorySQL-Docs Preview Ready
|
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both USERENV references describe SID as a user/session identifier and ISDBA as an authentication attribute, differing from the shipped helpers.
Align SID, SESSIONID and ISDBA in both USERENV and SYS_CONTEXT tables, in both languages. Specify backend PID, session sequence value with first-use allocation, and the superuser attribute of current_user.
Fixes #497.
Verification
Executed both public entry points on an Oracle-mode IvorySQL 5.6 server. SID equaled pg_backend_pid(); SESSIONID was stable within the session and differed in a second connection. ISDBA changed from TRUE to FALSE after SET ROLE to a non-superuser while session_user stayed the same, then returned TRUE after RESET ROLE. The two entry points agreed in every check.
Rendered every complete changed page independently against the v5.6 base with Asciidoctor.js 3.0.4; no diagnostics were introduced. Checked the Git diff for whitespace errors.
Release source: IvorySQL_5.6 reference.
AI assistance: Codex (GPT-6), covering the documentation changes and validation. The contributor has confirmed submission of the Individual CLA.