-
Notifications
You must be signed in to change notification settings - Fork 670
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
Introduce alter view propagation #5914
Conversation
abb431c
to
7be079e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, I need to test this a bit more. For now, few comments:
- Can we avoid overriding the object types in the statements, but let the code handle both views and tables where necessary?
- Can we send the exact commands that are executed on the coordinator (e.g., do not change
ALTER TABLE
toALTER VIEW
on the deparser - Lets add the comments that we discussed earlier where we do the process redirection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly minor comments, now testing the changes (and add comments if I find any issues) .
8b95cfd
to
2413c09
Compare
9c4638f
to
eadf2a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after considering minor style notes, seems ready to go
eadf2a4
to
0c02a51
Compare
Adds support for propagation ALTER VIEW commands to - Change owner of view - SET/RESET option - Rename view and view's column name - Change schema of the view Since PG also supports targeting views with ALTER TABLE commands, related code also added to direct such ALTER TABLE commands to ALTER VIEW commands while sending them to workers.
0c02a51
to
1875516
Compare
Codecov Report
@@ Coverage Diff @@
## master #5914 +/- ##
==========================================
+ Coverage 92.67% 92.69% +0.01%
==========================================
Files 236 236
Lines 48203 48422 +219
==========================================
+ Hits 44672 44884 +212
- Misses 3531 3538 +7 |
DESCRIPTION: Adds support for propagating ALTER VIEW commands
Introduce alter view propagation
Adds support for propagating alter view commands (except setting/resetting default values as Citus doesn't support update/delete on views). Note that both ALTER VIEW and ALTER TABLE supports have been added, since PG supports both of those syntax to alter view.