-
I am having some trouble understanding this section of the HOW-TO documentation. (feel free to direct me to any other place where this question has been answered. The closest I came across was this one.)
As I understand, CREATE EXTENSION of pg_partman will necessarily require superuser privileges. Correct? At that point, I am unable execute any of the GRANTs specified in the top-level README. For e.g. trying to run:
as a non-privileged user fails with Am I at all going about doing this the right way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're not able to grant privileges to objects unless you already have the existing privileges to allow you to apply such a grant. Otherwise anyone could just arbitrarily grant themselves access to objects they want to see and kind of defeats the purpose of a privilege system. So, in order to grant privileges to the pg_partman objects, you're still going to have to do that as either a superuser or at least someone that has the ability to give such grants. Hopefully I'm understanding your question and issue here. Otherwise, please feel free to followup. |
Beta Was this translation helpful? Give feedback.
You're not able to grant privileges to objects unless you already have the existing privileges to allow you to apply such a grant. Otherwise anyone could just arbitrarily grant themselves access to objects they want to see and kind of defeats the purpose of a privilege system.
So, in order to grant privileges to the pg_partman objects, you're still going to have to do that as either a superuser or at least someone that has the ability to give such grants.
Hopefully I'm understanding your question and issue here. Otherwise, please feel free to followup.