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

Fix Crash when Instead of View Trigger calls itself #1970

Conversation

deepakshi-mittal
Copy link
Contributor

@deepakshi-mittal deepakshi-mittal commented Nov 1, 2023

Description

This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly
Also fix crash IO view trigger inserted is used with join (BABEL-4514)

Task: BABEL-2170

Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#245

Issues Resolved

BABEL-2170

Test Scenarios Covered

  • Use case based -
  • IOT Trigger A on view calls Trigger A
  • fix crash IO view trigger inserted is used with join (BABEL-4514)

Check List

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

This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170

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

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

Signed-off-by: Deepakshi Mittal <[email protected]>
This commit will solve crash script listed in BABEL-4514
When inserted table is used with join inside trigger body,
Instead of Trigger on View was causing server crash

Task: BABEL-2170

Signed-off-by: Deepakshi Mittal <[email protected]>
The query plan might be cached and cant rely on erroring out iin
analyzer phase.

Task: BABEL-2170

Signed-off-by: Deepakshi Mittal <[email protected]>
@forestkeeper forestkeeper merged commit feeb336 into babelfish-for-postgresql:BABEL_3_X_DEV Nov 22, 2023
29 checks passed
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 21, 2023
…stgresql#1970)


This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 24, 2023
…stgresql#1970)


This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 24, 2023
…stgresql#1970)


This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 24, 2023
…stgresql#1970)


This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 28, 2023
…stgresql#1970)

This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
Sairakan pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Dec 28, 2023
…stgresql#1970)

This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[email protected]>
priyansx pushed a commit that referenced this pull request Dec 29, 2023
This change will fix crashes when an
Instead of Trigger on View calls itself directly and indirectly

Task: BABEL-2170
Signed-off-by: Deepakshi Mittal <[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