Skip to content

docs: describe USERENV identifiers and current-role DBA status - #507

Open
Loyal-Young wants to merge 1 commit into
IvorySQL:v5.6from
Loyal-Young:contest/docs-v56-userenv-identifiers
Open

Loyal-Young wants to merge 1 commit into
IvorySQL:v5.6from
Loyal-Young:contest/docs-v56-userenv-identifiers

Conversation

@Loyal-Young

Copy link
Copy Markdown

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.

Fixes IvorySQL#497.

Assisted-by: Codex:GPT-6
Percentage of AI-generated code: 100%
@github-actions

Copy link
Copy Markdown

🚀 IvorySQL-Docs Preview Ready

This branch was successfully deployed

1 active deployment
pull request — 0959c497 Deployed Nov 23, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Match the USERENV session identifiers and DBA result to IvorySQL v5.6

1 participant