

 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\_POLICY
<a name="r_SVV_RLS_POLICY"></a>

使用 SVV\_RLS\_POLICY 來檢視在 Amazon Redshift 叢集上建立的所有列層級安全政策清單。

所有使用者都可看見 SVV\_RLS\_POLICY。超級使用者可以看見所有資料列；一般使用者只能看見自己的資料。如需詳細資訊，請參閱[系統資料表和檢視中資料的可見性](cm_chap_system-tables.md#c_visibility-of-data)。

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


| 欄名稱  | 資料類型  | 說明 | 
| --- | --- | --- | 
| poldb | text | 列層級安全政策所在資料庫的名稱。 | 
| polname | text | 列層級安全政策的名稱。 | 
| polalias | text | 政策定義中使用的資料表別名。 | 
| polatts | text | 提供給政策定義的屬性。 | 
| polqual | text | 在 CREATE POLICY 陳述式的 USING 子句中提供的政策條件。 | 
| polenabled | boolean | 政策是否全域開啟。 | 
| polmodifiedby | text | 建立或最近修改政策的使用者名稱。 | 
| polmodifiedtime | timestamp | 建立或上次修改政策時的時間戳記。 | 

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

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

```
-- Create some policies.
CREATE RLS POLICY pol1 WITH (a int) AS t USING ( t.a IS NOT NULL );
CREATE RLS POLICY pol2 WITH (c varchar(10)) AS t USING ( c LIKE '%public%');

-- Inspect the policy in SVV_RLS_POLICY
SELECT * FROM svv_rls_policy;

 poldb | polname | polalias |                     polatts                      |                polqual                | polenabled | polmodifiedby |   polmodifiedtime   
-------+---------+----------+--------------------------------------------------+---------------------------------------+------------+---------------+---------------------
 my_db | pol1    | t        | [{"colname":"a","type":"integer"}]               | "t"."a" IS NOT NULL                   | t          | policy_admin  | 2022-02-11 14:40:49
 my_db | pol2    | t        | [{"colname":"c","type":"character varying(10)"}] | "t"."c" LIKE CAST('%public%' AS TEXT) | t          | policy_admin  | 2022-02-11 14:41:28
```