-
Notifications
You must be signed in to change notification settings - Fork 695
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
Implement DROP OWNED BY propagation #6519
Conversation
If this is allowed, I will ban the following content in the regression test. I want to know what everyone thinks of this problem?
|
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.
Thanks for the contribution!
DROP SCHEMA single_node_ent CASCADE;
DROP OWNED BY full_access_single_node;
DROP OWNED BY read_access_single_node;
SELECT run_command_on_workers($$DROP OWNED BY full_access_single_node$$);
run_command_on_workers
---------------------------------------------------------------------
- (localhost,57637,t,"DROP OWNED")
+ (localhost,57637,f,"ERROR: operation is not allowed on this node")
(1 row)
I think you should also adjust the existing regression tests NOT to have SELECT run_command_on_workers($$DROP OWNED BY XXX$$);
anymore
{ | ||
rolename = RoleSpecString((RoleSpec *) roleNode, true); | ||
} | ||
if (IsA(roleNode, AccessPriv)) |
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.
Can you really have this? Postgres code seems to deal with only RoleSpec: https://github.com/postgres/postgres/blob/3d14e171e9e2236139e8976f3309a588bcc8683b/src/backend/commands/user.c#L1467
@onderkalaci Thank you very much for your review, which is very helpful to me |
Hi, I would like to ask this ci/circleci: check-style — Your tests failed on CircleCI regression testing question:
This is the first time I submit code for citus, not sure what this means and how to solve it? I took a look at the actual size of the file, but couldn't see why: |
ea21f71
to
57a3b2e
Compare
It means your code doesn't comply with the style standards of the project, you can follow this to fix it: https://github.com/citusdata/citus/blob/main/CONTRIBUTING.md#following-our-coding-conventions |
@SaitTalhaNisanci @onderkalaci Thank you so much for your documentation help, I performed a |
db503e9
to
3cadf15
Compare
@SaitTalhaNisanci @marcocitus @onderkalaci Hello, I just updated my branch (update main) and caused some regression tests to fail, but I found no exceptions on the local environment (pg15), can you help me start CI again? thank you very much! |
b93434d
to
34ba501
Compare
DESCRIPTION: Fixes a bug that caused DROP OWNED BY to not drop schemas on workers
Dear developers, I have submitted a version of the code to solve the problem that the DROP OWNED BY command is not delivered to the worker node, which causes the failure to create objects such as schemas again.
Fixes #5763