Repository navigation
Support BACKUP and RESTORE of named collections - #126028
Conversation
|
Workflow [PR], commit [e55b632] Summary: ✅
AI ReviewSummaryThe PR adds Final VerdictStatus: ✅ Approve. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes43 object files changed (+333.63 KiB total), 2 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units398 translation units recompiled, 3290 s compile time in total, 396 of them have a recent master baseline. Translation units without a recent master baseline:
|
| /// against the initiating user (see `BackupsWorker`), because this host may be running the | ||
| /// query with full access. | ||
| auto access = context->getAccess(); | ||
| if (!access->isGranted(show_values_rights) || !access->isGranted(AccessType::displaySecretsInShowAndSelect)) |
There was a problem hiding this comment.
We may also need context->displaySecretsInShowAndSelect() which checks a server setting display_secrets_in_show_and_select = 0, and it cannot be changed by a user. Yet I'm not sure about this: it would mean backup_named_collections = 1 cannot override it and an operator who disabled the setting could never back up collections at all. IMO it needs some internal discussion.
432fb71 to
7f52a24
Compare
jkartseva
left a comment
There was a problem hiding this comment.
LGTM;
@eliangidoni Please change the category to a New Feature instead of Bug fix and document the key aspects in docs/concepts/features/backup-restore/, specifically the new settings.
✅ Preview approved@PedroTadim approved a Mintlify preview for commit |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
A backup could fail to restore if the table/schema references a named collection. This PR includes the named collections in a backup/restore.
SHOW NAMED COLLECTIONSandSHOW NAMED COLLECTIONS SECRETS- also with an encrypted storage.CREATE NAMED COLLECTION(andDROP NAMED COLLECTIONfor the 'replace' mode).restore_named_collections(table whose engine references a collection cannot be created without it) andcreate_named_collection.Changelog category (leave one):
Changelog entry:
Workflow [PR]
Sync PR [sync-upstream/pr/126028]
Version info
26.11.1.1168-master(included in26.11and later)