Hi i am totally new to vertica. I want to know if i have create privilege to create objects(tables,schema,sequence) in vertica. What is the query we use to view this
Use this script : SELECT'GRANT '|| REPLACE(privileges_description, '*', '') || ' ON '|| COALESCE(object_schema, '') || '.'|| object_name || ' TO '|| grantee || ';'asGRANTS FROMv_catalog.grants WHERECOALESCE(privileges_description, '') > '' ORDERBY1;<BR /> or go to http://www.verticablog.com/extract-user-privilages-definition-vertica/#.VFt5TPnF8uc to get the script
Comments
SELECT
'GRANT '
||
REPLACE
(privileges_description,
'*'
,
''
) ||
' ON '
||
COALESCE
(object_schema,
''
) ||
'.'
|| object_name ||
' TO '
||
grantee ||
';'
as
GRANTS
FROM
v_catalog.grants
WHERE
COALESCE
(privileges_description,
''
) >
''
ORDER
BY
1;<BR />
or go to http://www.verticablog.com/extract-user-privilages-definition-vertica/#.VFt5TPnF8uc
to get the script
but when i fire this query it gives information about a role...so the next the question is how to derive the role description
http://www.verticablog.com/extract-roles-definition-vertica/#.VFuHPfnF8uc
SELECT 'CREATE ROLE ' || name || ' ;' AS ROLESFROM v_catalog.roles
WHERE name NOT IN ('public', 'dbadmin', 'pseudosuperuser', 'dbduser')
ORDER BY 1;