मैं एक भूमिका 'xyz' है कि पहले एक ही नाम 'xyz' के साथ स्कीमा का मालिक था ड्रॉप करने की कोशिश कर रहा हूँ विफल रहता है। मैं नीचे के रूप में स्कीमा स्वामित्व बदल, और सिर्फ मामले में स्वामित्व पुन: असाइन चला (हालांकि सभी तालिकाओं सुपर उपयोगकर्ता शक्ति के साथ किसी दूसरे उपयोगकर्ता के द्वारा बनाया गया था)। इसके अलावा FYI करेंPostgreSQL ड्रॉप भूमिका क्योंकि डिफ़ॉल्ट विशेषाधिकार
drop role xyz;
ERROR: role "xyz" cannot be dropped because some objects depend on it
DETAIL: owner of default privileges on new relations belonging to role xyz in schema xyz
:: तो मैं इन सब चलाएँ:
alter schema xyz owner to postgres;
reassign owned by xyz to postgres;
alter default privileges in schema seeds revoke all on tables from xyz cascade;
alter default privileges in schema seeds revoke all on sequences from xyz cascade;
alter default privileges in schema seeds revoke all on functions from xyz cascade;
और फिर भी त्रुटि मिल रही है
postgres=# \du rsi
List of roles
Role name | Attributes | Member of
-----------+----------------+-----------
rsi | No inheritance | {}
मैं क्या याद आ रही है? किसी भी सहायता की सराहना की जाएगी! धन्यवाद!!
ले जाएँ इस dba.stackexchange.com के लिए? –