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

Support Global Index for Partition Table #15003

Closed
tiancaiamao opened this issue Feb 28, 2020 · 3 comments
Closed

Support Global Index for Partition Table #15003

tiancaiamao opened this issue Feb 28, 2020 · 3 comments
Labels
duplicate Issues or pull requests already exists. sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement.

Comments

@tiancaiamao
Copy link
Contributor

tiancaiamao commented Feb 28, 2020

Description

In the current table partition implementation, a partition and its indices are encoded to the same key-value range.

table t
...
partition1 
-- data start key
-- data end key
-- index start key
-- index end key
...

...
partition2
-- data start key
-- data end key
-- index start key
-- index end key
...

The global index would require another kind of encoding schema:

table t
...
partition1 
-- data start key
-- data end key
...

...
partition2
-- data start key
-- data end key
...

index
-- index start key
-- index end key
...

The most challenging part of this task is keeping compatible with the older versioned TiDB.

@tiancaiamao tiancaiamao added the type/enhancement The issue or PR belongs to an enhancement. label Feb 28, 2020
@zimulala zimulala added sig/sql-infra SIG: SQL Infra and removed component/DDL1 labels Mar 4, 2020
@zz-jason zz-jason changed the title UCP: Global index on table partition Support Global Index for Partition Table Apr 22, 2021
@zz-jason
Copy link
Member

Haven't found that MySQL supports the global index for the partition table. I found that there a discussion about supporting global index in PostgreSQL: https://www.percona.com/blog/2019/11/20/proposal-for-global-indexes-in-postgresql/

@morgo do you have any idea about this?

@morgo
Copy link
Contributor

morgo commented Apr 22, 2021

You are correct, it is not supported.

cc @mjonss

@zz-jason
Copy link
Member

close since it's duplicated with #18032

@zz-jason zz-jason added the duplicate Issues or pull requests already exists. label Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues or pull requests already exists. sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

5 participants