2017-07-04 116 views
6

我無法在文檔中找到答案,那麼postgres中的超級用戶究竟是什麼?什麼是postgres超級用戶

超級用戶是否擁有所有權限?它是每個數據庫?每個實例?

回答

1

PostgreSQL中的超級用戶在所有數據庫中所有特權是誰繞過所有權限檢查的用戶。

超級用戶可以運行可能使數據庫服務器不穩定或崩潰(例如,創建C函數)並訪問操作系統的命令。

-1

超級用戶是每個數據庫。從manual

SUPERUSER NOSUPERUSER These clauses determine whether the new role is a "superuser", who can override all access restrictions within the database. Superuser status is dangerous and should be used only when really needed. You must yourself be a superuser to create a new superuser. If not specified, NOSUPERUSER is the default.

超級用戶角色超越所有權限檢查。

PostgreSQL中的術語「集羣」是一個歷史記錄,它與PostgreSQL命令CLUSTER無關,它關於組織表 - 您設置每個數據庫的用戶數,而不是每個集羣。安裝PostgreSQL時會創建一個集羣。安裝通常會執行initdb - 它將爲您創建一個包含一個數據庫的新羣集。集羣是只是數據目錄與數據庫裏面。有關該數據的位置,請查看manual

+0

否。「數據庫」一詞通常用於「數據庫集羣」的口語。此外,術語「羣集」仍然在使用中,不僅僅是歷史的,無論它看起來是否令人困惑。 – user1071847

相關問題