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

sql: make pg_catalog OIDs stable and refer to the descriptor IDs directly #33420

Closed
wants to merge 1 commit into from

Conversation

hueypark
Copy link
Contributor

@hueypark hueypark commented Jan 1, 2019

Feature for #32940

Can handle in future #32963, #32964

Databases and tables OID use descriptor id directly. It's fine because we create the id with sql.GenerateUniqueDescID.

Virtual tables use static negative ID. Do not use the same math.MaxUint32 anymore.

Release note(sql change): Databases and tables pg_catalog OID values are changed.

@hueypark hueypark requested review from a team January 1, 2019 14:31
@hueypark hueypark requested a review from a team as a code owner January 1, 2019 14:31
@hueypark hueypark requested review from a team January 1, 2019 14:31
@CLAassistant
Copy link

CLAassistant commented Jan 1, 2019

CLA assistant check
All committers have signed the CLA.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Thank you for this PR. The change to give different IDs to each virtual table is very good.

I still want to investigate further how to structure the IDs so that they are not all over the place (and so that they can become stable over time). I will come back to you.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

…ctly

Databases and tables OID use descriptor id directly. It's fine because we create the id with sql.GenerateUniqueDescID.

Virtual tables use static negative ID. Do not use the same math.MaxUint32 anymore.

Release note(sql change): Databases and tables pg_catalog OID values are changed.
Copy link
Contributor Author

@hueypark hueypark left a comment

Choose a reason for hiding this comment

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

Thank you for your review.

Please note that the method of assigning ID has been improved.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@hueypark hueypark closed this Jan 13, 2019
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.

4 participants