Fix pg_dump package ACLs, native-PG SET, and initdb dbmode case - #1683
Fix pg_dump package ACLs, native-PG SET, and initdb dbmode case#1683Aias00 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 4 reviews per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe changes make PostgreSQL mode detection case-insensitive. ChangesCompatibility and dump corrections
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR makes localized fixes to ACL preservation, session setup, and case-insensitive dbmode parsing. No concrete current-head correctness or deployment risk requires blocking merge; it is merge-ready after normal checks. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
- pg_dump: assign dacl.acl so package ACLs are actually dumped, and clear the ACL component only when the ACL is NULL (the condition was inverted) - pg_dump: probe pg_settings before SET ivorysql.identifier_case_switch so dumping a native PostgreSQL source does not abort (the PG->IvorySQL upgrade path) - pg_dump: drop the duplicated "WARNING: " prefix and newline from pg_log_warning - initdb: accept --dbmode=PG case-insensitively like the other dbmode checks Closes IvorySQL#1682 Signed-off-by: liuhongyu <liuhongyu@apache.org>
ae032f2 to
c270473
Compare
Summary
Fixes #1682.
src/bin/pg_dump/pg_dump.c):dacl.aclis now assigned and the ACL component is cleared only when the ACL is NULL (the condition was inverted, and the comment already said the opposite). GRANTs on Oracle packages are now preserved on restore.SET ivorysql.identifier_case_switch = normalis now guarded by apg_settingsprobe (same pattern as therelhasrowidruntime probe), so the PG→IvorySQL upgrade path works.initdb --dbmode=PG:strcmp→pg_strcasecmp, matching the other dbmode checks.Test plan
pg_dump.oandinitdb.ocompile cleanly (full link is blocked locally by the known macOSivy_sema.cissue).Summary by CodeRabbit
pg_dumpcompatibility with native PostgreSQL databases by safely handling optional configuration settings.