

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 建立、更改和刪除使用者
<a name="r_Users-creatingaltering-and-deleting-users"></a>

資料庫使用者適用於資料倉儲叢集 (而且不是根據個別資料庫)。
+  若要建立使用者，請使用 [CREATE USER](r_CREATE_USER.md) 命令。
+  若要建立超級使用者，請使用 [CREATE USER](r_CREATE_USER.md) 命令與 CREATEUSER 選項搭配。
+ 若要移除現有的使用者，請使用 [DROP USER](r_DROP_USER.md) 命令。
+ 若要變更使用者 (例如變更密碼)，請使用 [ALTER USER](r_ALTER_USER.md) 命令。
+ 若要檢視使用者清單，請查詢 PG\$1USER 目錄資料表。

  ```
  select * from pg_user;
  
    usename   | usesysid | usecreatedb | usesuper | usecatupd |  passwd  | valuntil | useconfig
  ------------+----------+-------------+----------+-----------+----------+----------+-----------
   rdsdb      |        1 | t           | t        | t         | ******** |          |
   masteruser |      100 | t           | t        | f         | ******** |          |
   dwuser     |      101 | f           | f        | f         | ******** |          |
   simpleuser |      102 | f           | f        | f         | ******** |          |
   poweruser  |      103 | f           | t        | f         | ******** |          |
   dbuser     |      104 | t           | f        | f         | ******** |          |
  (6 rows)
  ```