fix: fix issue 1449#1450
Conversation
给 ivorysql.enable_case_switch 的 flags 加上 GUC_DISALLOW_IN_DB_ROLE_SETTING,与 compatible_mode 一致
📝 WalkthroughWalkthrough
ChangesGUC settings
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/backend/utils/misc/ivy_guc.c`:
- Around line 189-193: Update the documentation comment for default_with_rowids
to state that it applies only in Oracle compatibility mode and only when table
creation does not specify an explicit ROWID option; avoid describing it as
applying to all newly created tables unconditionally.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9d1d8c8f-10e6-4f3c-a0fc-eb652baa14f6
⛔ Files ignored due to path filters (1)
src/backend/utils/misc/guc_parameters.datis excluded by!**/*.dat
📒 Files selected for processing (1)
src/backend/utils/misc/ivy_guc.c
| * When enabled, all newly created tables will automatically include an | ||
| * Oracle-compatible ROWID pseudo-column. This provides compatibility with | ||
| * Oracle applications that rely on ROWID for row identification. | ||
| * | ||
| * Default: off | ||
| * Context: USERSET (can be changed by any user) | ||
| * Default: off Context: USERSET (can be changed by any user) |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Clarify the default_with_rowids scope.
Line 189 says all newly created tables receive ROWID columns, but the runtime uses this GUC only in Oracle compatibility mode and only when no explicit ROWID option is provided. Please document those conditions to avoid misleading users.
Proposed wording
- * When enabled, all newly created tables will automatically include an
- * Oracle-compatible ROWID pseudo-column. This provides compatibility with
- * Oracle applications that rely on ROWID for row identification.
+ * When enabled in Oracle compatibility mode, tables without an explicit
+ * ROWID option default to an Oracle-compatible ROWID pseudo-column.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| * When enabled, all newly created tables will automatically include an | |
| * Oracle-compatible ROWID pseudo-column. This provides compatibility with | |
| * Oracle applications that rely on ROWID for row identification. | |
| * | |
| * Default: off | |
| * Context: USERSET (can be changed by any user) | |
| * Default: off Context: USERSET (can be changed by any user) | |
| * When enabled in Oracle compatibility mode, tables without an explicit | |
| * ROWID option default to an Oracle-compatible ROWID pseudo-column. | |
| * | |
| * Default: off Context: USERSET (can be changed by any user) |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/backend/utils/misc/ivy_guc.c` around lines 189 - 193, Update the
documentation comment for default_with_rowids to state that it applies only in
Oracle compatibility mode and only when table creation does not specify an
explicit ROWID option; avoid describing it as applying to all newly created
tables unconditionally.
|
Thanks for your contribution! I'll review it shortly. |
fix: #1449
Summary by CodeRabbit
Bug Fixes
ivorysql.enable_case_switchfrom being configured through database role settings, improving configuration consistency.Documentation
Style