Skip to content

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Mar 26, 2025

While working on issue #989 I realized we need to cherry-pick a couple of valuable contributions from GP7 to resolve diff easily. Also, there is a benefit of cherry-picking catalog-changing contributions before CBDB 2.0 release.

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


@yjhjstz
Copy link
Member

yjhjstz commented Mar 27, 2025

cool, need a rebase.

@tuhaihe
Copy link
Member

tuhaihe commented May 9, 2025

Hi @reshke would you like to include this PR in the coming 2.0.0? If so, welcome to add this PR to the GitHub project.

Copy link
Contributor

@gfphoenix78 gfphoenix78 left a comment

Choose a reason for hiding this comment

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

LGTM

@reshke
Copy link
Contributor Author

reshke commented Jun 9, 2025

big thanks to @gfphoenix78 for taking care of it....
LGTM

@reshke
Copy link
Contributor Author

reshke commented Jun 19, 2025

Hi @reshke would you like to include this PR in the coming 2.0.0? If so, welcome to add this PR to the GitHub project.

HI! lets approve it and merge

wangxuqi and others added 3 commits June 19, 2025 09:21
On first index creation (block directory is created) and only that time all columns are scanned. Later any index creation just scans needed columns.

cherry-picked. Note influence of greenplum-db/gpdb-archive@8c92aa0
We can get indexes for blkdir and visimap from pg_index via
`RelationGetIndexList`. Removing these 2 fields will reduce catalog
size.

Basically, we now deal with these two properties in a more similar
way as the indexes of toast tables, where we always open the toast
table first and then get its index via `RelationGetIndexList`. In
fact, in majority of the places currently we already have those
two aux tables opened. The only place we didn't is in
ATExecSetTableSpace(), but it shouldn't slow down that function
too much anyway.

The other notable thing is that we need to modify how we get these
indexes in pg_dump - we now have to check the pg_index.
@reshke
Copy link
Contributor Author

reshke commented Jun 19, 2025

Did a rebase on fresh master

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.

6 participants