schema | name | column | data type |
---|---|---|---|
pg_catalog | svv_redshift_databases | database_acl | varchar(128) |
pg_catalog | svv_redshift_databases | database_name | varchar(128) |
pg_catalog | svv_redshift_databases | database_options | varchar(128) |
pg_catalog | svv_redshift_databases | database_owner | int4 |
pg_catalog | svv_redshift_databases | database_type | varchar(16) |
SELECT CAST(btrim(CAST(pgd.datname AS text)) AS varchar(128)) AS database_name, pgd.datdba AS database_owner, CAST(CASE WHEN pged.dboptions IS NULL THEN CAST('local' AS text) ELSE CAST('shared' AS text) END AS varchar(16)) AS database_type, CAST(array_to_string(pgd.datacl, CAST('~' AS text)) AS varchar(128)) AS database_acl, CAST(pged.dboptions AS varchar(128)) AS database_options FROM pg_database AS pgd LEFT JOIN pg_external_database AS pged ON pgd.oid = pged.dbid WHERE pgd.datname <> CAST('padb_harvest' AS name) AND pgd.datname <> CAST('template0' AS name) AND pgd.datname <> CAST('template1' AS name) AND (pged.dboptions IS NULL OR has_shared_database_privilege(pgd.oid, CAST('usage' AS text)))
Home 3D Друк Blog Bring-Up Times Consultancy Cross-Region Benchmarks Email Forums IRC Mailing Lists Reddit Redshift Price Tracker Redshift Version Tracker Redshift Workbench System Table Tracker The Known Universe Twitter White Papers