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 for Instead of Trigger On Views in Babelfish #225

Conversation

deepakshi-mittal
Copy link
Contributor

@deepakshi-mittal deepakshi-mittal commented Oct 2, 2023

Description

Currently Postgres does not support Instead of Trigger On Views for DML queries.

On running such a query on VIEW, query rewriting substitutes view with underlying base table.
Added a hook for skipping the substitution for DML query on the VIEW.

This change will add support for Instaed of Triggers for DML queries when using Babelfish.

Task: BABEL-2170

Signed-off-by: Deepakshi Mittal [email protected]

  • [] 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.

Currently Postgres does not support Instead of Trigger
On Views for DML queries.

On running such a query on VIEW, query rewriting substitutes
view with underlying base table.
Added a hook for skipping the substitution for DML
query on the VIEW.

This change will add support for Instaed of Triggers
for DML queries when using Babelfish.

Task: BABEL-2170

Signed-off-by: Deepakshi Mittal <[email protected]>
Task: BABEL-2170

Signed-off-by: Deepakshi Mittal <[email protected]>
Copy link
Contributor

@forestkeeper forestkeeper left a comment

Choose a reason for hiding this comment

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

LGTM

@forestkeeper forestkeeper merged commit d10cc3e into babelfish-for-postgresql:BABEL_3_X_DEV__PG_15_X Oct 11, 2023
Sairakan pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 16, 2023
…ostgresql#225)

* Support for Instead of Trigger On Views in Babelfish

Currently Postgres does not support Instead of Trigger
On Views for DML queries.

On running such a query on VIEW, query rewriting substitutes
view with underlying base table.
Added a hook for skipping the substitution for DML
query on the VIEW.

This change will add support for Instaed of Triggers
for DML queries when using Babelfish.

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
priyansx pushed a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 22, 2023
…ostgresql#225)

* Support for Instead of Trigger On Views in Babelfish

Currently Postgres does not support Instead of Trigger
On Views for DML queries.

On running such a query on VIEW, query rewriting substitutes
view with underlying base table.
Added a hook for skipping the substitution for DML
query on the VIEW.

This change will add support for Instaed of Triggers
for DML queries when using Babelfish.

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
deepakshi-mittal added a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 27, 2023
deepakshi-mittal added a commit to amazon-aurora/postgresql_modified_for_babelfish that referenced this pull request Nov 27, 2023
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.

2 participants