Skip to content

[POC] cte based query rewriting for insert execute select queries#4504

Open
monk0707 wants to merge 3 commits intobabelfish-for-postgresql:BABEL_5_X_DEVfrom
monk0707:BABEL_5522
Open

[POC] cte based query rewriting for insert execute select queries#4504
monk0707 wants to merge 3 commits intobabelfish-for-postgresql:BABEL_5_X_DEVfrom
monk0707:BABEL_5522

Conversation

@monk0707
Copy link
Copy Markdown

Description

Modified contrib/babelfishpg_tsql/pl_exec.c Inside the called procedure, SELECT statements are detected and rewritten.
Modified contrib/babelfishpg_tsql/tsqlIface.cpp Target table information extraction.
Modified contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c The TDS layer is updated to report row counts for INSERT-EXEC.
Added test case.

Authored by Arvind Sharma arvshaa@amazon.com
Signed-off by Arvind Sharma arvshaa@amazon.com

Issues Resolved

Epic - BABEL-5522

[List any issues this PR will resolve]

Test Scenarios Covered

  • Use case based -

  • Boundary conditions -

  • Arbitrary inputs -

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

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.

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