

 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/)。

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

# SVV\_RLS\_ATTACHED\_POLICY
<a name="r_SVV_RLS_ATTACHED_POLICY"></a>

使用 SVV\_RLS\_ATTACHED\_POLICY 來檢視目前連線的資料庫上連接了一或多個列層級安全政策的所有關係和使用者清單。

只有具備 sys:secadmin 角色的使用者才能查詢此檢視。

## 資料表欄
<a name="r_SVV_RLS_ATTACHED_POLICY-table-columns"></a>


| 欄名稱  | 資料類型  | Description | 
| --- | --- | --- | 
| relschema | text | 列層級安全政策所連接之關係的結構描述名稱。 | 
| relname | text | 列層級安全政策所連接的關係名稱。 | 
| relkind | text | 物件的類型，例如 table。 | 
| polname | text | 連接至關係之列層級安全政策的名稱。 | 
| grantor | text | 連接此政策的使用者名稱。 | 
| grantee | text | 此政策已連接之使用者或角色的名稱。 | 
| granteekind | text | grantee 的類型。可能的值是 user 或 role。 | 
| is\_pol\_on | boolean | 指出資料表上的列層級安全政策是開啟或關閉的參數。可能的值是 true 和 false。 | 
| is\_rls\_on | boolean | 指出資料表上的列層級安全是開啟或關閉的參數。可能的值是 true 和 false。 | 
| rls\_conjunction\_type | character(3) | 指出關係是否與 and 或 or 結合 RLS 政策的參數。 | 

## 範例查詢
<a name="r_SVV_RLS_ATTACHED_POLICY-sample-query"></a>

下列範例顯示 SVV\_RLS\_ATTACHED\_POLICY 的結果。

```
--Inspect the policy in SVV_RLS_ATTACHED_POLICY
SELECT * FROM svv_rls_attached_policy;

 relschema |        relname           | relkind |     polname     | grantor | grantee  | granteekind | is_pol_on | is_rls_on | rls_conjuntion_type
-----------+--------------------------+---------+-----------------+---------+----------+-------------+-----------+-----------+---------------------
 public    | tickit_category_redshift |  table  | policy_concerts |   bob   |  analyst |    role     |    True   |    True   |      and
 public    | tickit_category_redshift |  table  | policy_concerts |   bob   |  dbadmin |    role     |    True   |    True   |      and
```