Repository navigation
Conversation
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>
|
🚀 IvorySQL-Docs Preview Ready
|
This branch was previously 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.
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 readsivorysql.rowid_seq_cache(default20) and emitsCACHE <n>when the value is > 1; only a value of1producesNOCACHE. This applies to bothCREATE TABLEandALTER 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 > 1branch); default20confirmed fromsrc/backend/utils/misc/ivy_guc.c. No invented values.Validation
rowid_seq_cache > 1branch, thecacheDefElem, theNOCACHEexplanation, and the default value20.Risk
Documentation only; no code or build impact. CLA signed.
Closes #529