Skip to content

docs: correct the generated ROWID sequence cache example - #640

Open
lkhhfd1 wants to merge 3 commits into
IvorySQL:v5.6from
lkhhfd1:docs/rowid-seq-cache-example
Open

lkhhfd1 wants to merge 3 commits into
IvorySQL:v5.6from
lkhhfd1:docs/rowid-seq-cache-example

Conversation

@lkhhfd1

@lkhhfd1 lkhhfd1 commented Dec 1, 2026

Copy link
Copy Markdown

What

Correct the generated ROWID sequence cache example in 6.3.3.adoc (EN + CN), closing #529.

The old excerpt showed the generated sequence always receiving NOCACHE. In IvorySQL 5.6 the generator reads ivorysql.rowid_seq_cache (default 20) and emits CACHE <n> when the value is > 1; only a value of 1 produces NOCACHE. This applies to both CREATE TABLE and ALTER TABLE 鈥?SET WITH ROWID.

The excerpt now matches the real conditional logic, and both pages state that the default generated sequence uses CACHE 20.

Source of truth

Code excerpt taken from src/backend/parser/parse_utilcmd.c (CREATE path, rowid_seq_cache > 1 branch); default 20 confirmed from src/backend/utils/misc/ivy_guc.c. No invented values.

Validation

  • Both EN and CN pages contain the rowid_seq_cache > 1 branch, the cache DefElem, the NOCACHE explanation, and the default value 20.
  • Files are LF-only; diff is limited to the two pages (+11/-1 each).

Risk

Documentation only; no code or build impact. CLA signed.

Closes #529

Both language versions of the RowID architecture page showed the generated
sequence always receiving NOCACHE. In IvorySQL 5.6 the sequence generator reads
ivorysql.rowid_seq_cache (default 20) and uses CACHE <n> when the value is > 1,
NOCACHE only when it is 1 — for both CREATE TABLE and ALTER TABLE ... SET WITH
ROWID. Update the code excerpt to the real conditional logic and state the
default CACHE 20 behaviour, with source references.

closes IvorySQL#529

Assisted-by: LLM
Signed-off-by: lkhhfd1 <1356915765@qq.com>
@github-actions
github-actions Bot temporarily deployed to pull request December 1, 2026 13:01 Inactive
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🚀 IvorySQL-Docs Preview Ready

This branch was previously deployed

1 inactive deployment
pull request — 6250e962 Deployed Dec 1, 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.

Correct the generated ROWID sequence cache example

1 participant