Vertica issue - Additional truncate privilege
When copy the privileges from tartget table to temp table, the temp table will get an additional truncate privilege which should have not been existed.
0
When copy the privileges from tartget table to temp table, the temp table will get an additional truncate privilege which should have not been existed.
Comments
Can you describe better your situation ?! your phrase doesn't make to much sense .
Hi Adrian_oPREA,
Thanks for your response. I have attached the details in the attachment.
The answer is quite simple.
The user srvc_cdradmin_itg is the owner of the table. Or at least this is what i see .
Run this query to see :
Or you can try to revoke truncate:
Hi Adrian_Oprea,
Thank you very much. And yes, the user srvc_cdradmin_itg is the owner of the table. And i want to know how could that happen as i didn't grant the truncate access to srvc_cdradmin_itg? And do you have any other ways to fix that except revoking? Thanks.
Well by default when you create a table you inherit the truncate grant on that object.
Try to grant this roles to another user(but the user who created the table) and see that the truncate will not be added.
Here is a short demo to see who owner ship populate the granted roles.
hope this makes sense and helped.
Did you grant USAGE on the table? USAGE priv grants truncate
Thank you very much.
Hi FiliN,
Thanks for you response. Usually i just grant the usage on the schema.