

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://amazonaws-china.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# SVV\$1RELATION\$1PRIVILEGES
<a name="r_SVV_RELATION_PRIVILEGES"></a>

Use SVV\$1RELATION\$1PRIVILEGES to view the relation (tables and views) permissions that are explicitly granted to users, roles, and groups in the current database.

SVV\$1RELATION\$1PRIVILEGES is visible to the following users:
+ Superusers
+ Users with the SYSLOG ACCESS UNRESTRICTED permission

Other users can only see identities they have access to or own. For more information about data visibility, see [Visibility of data in system tables and views](cm_chap_system-tables.md#c_visibility-of-data).

## Table columns
<a name="r_SVV_RELATION_PRIVILEGES-table-columns"></a>

[\[See the AWS documentation website for more details\]](http://docs.amazonaws.cn/en_us/redshift/latest/dg/r_SVV_RELATION_PRIVILEGES.html)

## Sample query
<a name="r_SVV_RELATION_PRIVILEGES-sample-query"></a>

The following example displays the result of the SVV\$1RELATION\$1PRIVILEGES.

```
SELECT namespace_name,relation_name,privilege_type,identity_name,identity_type,admin_option FROM svv_relation_privileges
WHERE relation_name = 'orders' AND privilege_type = 'SELECT';

 namespace_name | relation_name | privilege_type |  identity_name | identity_type | admin_option
----------------+---------------+----------------+----------------+---------------+--------------
     public     |    orders     |     SELECT     |    reguser     |     user      |    False
     public     |    orders     |     SELECT     |     role1      |     role      |    False
```