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

Add support for transition tables #6901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jamessewell
Copy link
Contributor

@jamessewell jamessewell commented May 9, 2024

This adds support for using statement-level triggers with transition tables to hypertables and chunks of hypertables.

@jamessewell jamessewell self-assigned this May 9, 2024
src/planner/planner.h Outdated Show resolved Hide resolved
@svenklemm
Copy link
Member

In the pg source there is explicit comment blocking transition tables for partitioned tables did you investigate the reason for this? I think you might have to do attribute mapping if we decide to allow this. This also needs rebase since PG13 support has been removed.

@mkindahl mkindahl force-pushed the js-transition-table-support-in-triggers branch from 19f0a37 to f44e586 Compare December 3, 2024 15:42
@mkindahl mkindahl self-assigned this Dec 3, 2024
@mkindahl mkindahl removed their request for review December 3, 2024 15:43
@mkindahl mkindahl force-pushed the js-transition-table-support-in-triggers branch from f44e586 to c8c16f6 Compare December 3, 2024 15:46
@mkindahl mkindahl marked this pull request as ready for review December 3, 2024 15:47
@mkindahl mkindahl assigned jamessewell and unassigned jamessewell Dec 3, 2024
@mkindahl
Copy link
Contributor

mkindahl commented Dec 3, 2024

Note: It is possible to add a trigger on an inherited table, but that might require an attribute re-mapping so not sure we should support it. The situation where this can be a problem is if we modify the parent table (by adding and removing attributes) and then add new inherited tables they will have a different set of attribute numbers, which might require a re-mapping of the attributes.

Copy link

github-actions bot commented Dec 3, 2024

@antekresic, @erimatnor: please review this pull request.

Powered by pull-review

@mkindahl mkindahl force-pushed the js-transition-table-support-in-triggers branch from c8c16f6 to 26fcff1 Compare December 3, 2024 15:53
This adds support for using statement-level triggers with transition
tables to hypertables and chunks of hypertables.

Co-Authored-By: James Sewell <[email protected]>
@mkindahl mkindahl force-pushed the js-transition-table-support-in-triggers branch from 26fcff1 to 624471d Compare December 3, 2024 15:58
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