Skip to content
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

ADBDEV-6761: Always restore system objects of database #49

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

KnightMurloc
Copy link

@KnightMurloc KnightMurloc commented Nov 22, 2024

Always restore system objects of database

Previously, when restoring with an empty filter (an empty array), the system
catalog was restored only for these databases: postgres, template1 and
template0. In this case, we cannot get metadata from user databases. Because of
this, it was required to get the OIDs of the user databases first and restore
again with user databases, whose OIDs had been obtained on the previous step. To
do one step to get metadata about tables instead of these two steps, the system
catalog is restored for all restoring databases.

Previously, when restoring with an empty filter (an empty array), the system
catalog was restored only for databases: postgres, template1 and template0. In
this case, we cannot get metadata from user databases. Because of this, it was
required to first get the OIDs of the user databases and restore again, which is
not effective. This patch changes the behavior of the filter to the databases
not specified in the filter. The system catalog is now being restored for all
databases.
@KnightMurloc KnightMurloc changed the title ADBDEV-6761: Always restore system database objects ADBDEV-6761: Always restore system objects of database Nov 22, 2024
@KnightMurloc KnightMurloc merged commit fb81323 into 2.52-ci Nov 22, 2024
30 checks passed
@Stolb27 Stolb27 deleted the ADBDEV-6761-ci branch November 22, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants