-
-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #7269: Restore deferred primary key indexes #8170
Fix #7269: Restore deferred primary key indexes #8170
Conversation
Fixed database recovery aborting on the first failure of the first problematic deferred index gbak (FirebirdSQL#7269)
? |
What about extracting code, copied from "creating FK" block below, into separate routine to avoid duplication ? |
Extracted "activateIndex" function to remove duplicate code when restoring the database
I moved the activation of indexes into a separate function, please take a look |
? |
Please, be patient and wait a bit, I'll return to it when time permits. |
I will add some additional fix after merge. |
JFYI: You can create a pull request to a pull request improving it before merging. |
Yes. But it is too much bureaucracy and not needed in this case. |
* fixed restore deferred primary key indexes Fixed database recovery aborting on the first failure of the first problematic deferred index gbak (#7269) * Extract function activateIndex Extracted "activateIndex" function to remove duplicate code when restoring the database
Thank you for accepting my fix. |
Fixed database recovery aborting on the first failure of the first problematic deferred index gbak (#7269)
I took the database to check from #7269
Previously, recovery was interrupted when trying to activate PK_A3.
Now the recovery continues, which allows you to smoothly restore PK_A2.
The foreign key, however, is still not restored because requires an active primary key, but this still allows you to greatly reduce the number of non-activated indexes (on our industrial base, 3000+ indexes were not activated due to one non-activated one)