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

OID Wraparound #2259

Merged

Conversation

timchang514
Copy link
Contributor

Description

This change adds a separate OID buffer for temp objects. Since temp objects are already session-local, we can allocate a separate buffer of OIDs set aside only for temp objects. This same buffer range can be used across all sessions.

Test Scenarios Covered

Unit tests in babelfishpg_unit for testing of individual functions. Standard JDBC tests for temp tables. In addition, a new JDBC module written that helps us test specific temp-table cases and inspecting OIDs of generated tables, among other things.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tim Chang <[email protected]>

Remove stress test due to timeout

Support full OID range

Make GUC unalterable for now

blank commit

empty

Add null check in logical schema

Remove unnecessary volatile

blank

Adding some simple unit testing

Signed-off-by: Tim Chang <[email protected]>

Added tests to upgrade

Signed-off-by: Tim Chang <[email protected]>

Added new JDBC tests for temp tables

Moved new OID generation functions into extension hooks

Signed-off-by: Tim Chang <[email protected]>

Added extra tests for buffer

Signed-off-by: Tim Chang <[email protected]>

Minor fixes

Signed-off-by: Tim Chang <[email protected]>

Rerun tests

Bump SLA

Signed-off-by: Tim Chang <[email protected]>

Add invariant checks in functions, added unit tests, expanded JDBC tests

Signed-off-by: Tim Chang <[email protected]>

Minor test changes, comments
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 7562576856

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 71.836%

Totals Coverage Status
Change from base Build 7561797075: 0.02%
Covered Lines: 39777
Relevant Lines: 55372

💛 - Coveralls

Copy link
Contributor

@lejaokri lejaokri left a comment

Choose a reason for hiding this comment

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

@timchang514 confirmed @surendravishnoi has approved the original PRs:
extension: #1894
engine: babelfish-for-postgresql/postgresql_modified_for_babelfish#232

@lejaokri lejaokri merged commit f43add5 into babelfish-for-postgresql:BABEL_4_X_DEV Jan 17, 2024
31 checks passed
forestkeeper pushed a commit that referenced this pull request Jan 25, 2024
Adding toasts to ENR for temp tables. This was originally introduced as part of #2259 .

Signed-off-by: Tim Chang <[email protected]>
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