Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SVV_COLUMN_PRIVILEGES - Amazon Redshift

SVV_COLUMN_PRIVILEGES

Use SVV_COLUMN_PRIVILEGES to view the column permissions that are explicitly granted to users, roles, and groups in the current database.

SVV_COLUMN_PRIVILEGES is visible to the following users:

  • Superusers

  • Users with the ACCESS SYSTEM TABLE permission

Other users can only see identities they have access to or own.

Table columns

Column name Data type Description
namespace_name text The name of the namespace where a specified relation exists.
relation_name text The name of the relation.
column_name text The name of the column.
privilege_type text The type of the permission. Possible values are SELECT or UPDATE.
identity_id integer The ID of the identity. Possible values are user ID, role ID, or group ID.
identity_name text The name of the identity.
identity_type text The type of the identity. Possible values are user, role, group or public.

Sample query

The following example displays the result of the SVV_COLUMN_PRIVILEGES.

SELECT namespace_name,relation_name,COLUMN_NAME,privilege_type,identity_name,identity_type FROM svv_column_privileges WHERE relation_name = 'lineitem'; namespace_name | relation_name | column_name | privilege_type | identity_name | identity_type ----------------+---------------+-------------+----------------+---------------+---------------- public | lineitem | l_orderkey | SELECT | reguser | user public | lineitem | l_orderkey | SELECT | role1 | role public | lineitem | l_partkey | SELECT | reguser | user public | lineitem | l_partkey | SELECT | role1 | role
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.