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

Issue #389: Do not include a declaratively partitioned table with option --only-indexes #398

Merged
merged 5 commits into from
May 17, 2024

Conversation

za-arthur
Copy link
Collaborator

When the option --only-indexes is used it doesn't make sense to repack indexes of a decoratively partitioned table since they don't store data. Therefore we can just ignore parent tables within the function repack_all_indexes().

Issue: #389

@andreasscherbaum
Copy link
Collaborator

Looks good, except tests for older versions are failing.

bin/pg_repack.c Outdated Show resolved Hide resolved
@za-arthur
Copy link
Collaborator Author

Looks good, except tests for older versions are failing.

Yeah. Looks like Postgres 10 and older versions don't support some features. Postgres 10 supports declarative partitioning, but it doesn't support indexes on partitioned tables ("parents"). I guess I'd need to rewrite the test to be able to test --only-indexes on partitions on Postgres 10 too.

@za-arthur za-arthur requested a review from Melkij May 16, 2024 22:43
Copy link
Collaborator

@Melkij Melkij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@za-arthur
Copy link
Collaborator Author

Merging the PR.

@za-arthur za-arthur merged commit b583237 into master May 17, 2024
20 checks passed
@za-arthur za-arthur deleted the issue_389_concurrent_index branch May 17, 2024 15:59
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.

3 participants