Skip to content

Dummy PR to test fix for BABEL-5703 #558

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

Open
wants to merge 2 commits into
base: BABEL_5_X_DEV__PG_17_X
Choose a base branch
from

Conversation

Deepesh125
Copy link
Contributor

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

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 PostgreSQL license, 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.

Comment on lines 620 to +635
if (get_rel_persistence(rte->relid) == RELPERSISTENCE_TEMP)
{
/*
* Babelfish Temp tables are created under ENRs which is not
* shared with other backend (with parallel workwer for example).
* Here, we are marking rte->relpersistence = RELPERSISTENCE_TEMP
* for Babelfish temp table so that we can avoid rechecking the
* permission check of Babelfish temp table on Parallel worker.
* This is safe because scanning of temp table won't be done
* under parallel worker. And we have to wait til all the
* optimisation and rewriting is done.
*/
if (sql_dialect == SQL_DIALECT_TSQL)
rte->relpersistence = RELPERSISTENCE_TEMP;
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably not needed

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.

1 participant