DESC DATASHARE - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DESC DATASHARE

Displays a list of the database objects within a datashare that are added to it using ALTER DATASHARE. Amazon Redshift displays the names, databases, schemas, and types of tables, views, and functions.

Syntax

DESC DATASHARE datashare_name [ OF [ ACCOUNT account_id ] NAMESPACE namespace_guid ]

Parameters

datashare_name

The name of the datashare .

NAMESPACE namespace_guid

A value that specifies the namespace that the datashare uses. When you run DESC DATAHSARE as a consumer cluster administrator, specify the NAMESPACE parameter to view inbound datashares.

ACCOUNT account_id

A value that specifies the account that the datashare belongs to.

Usage Notes

As a consumer account administrator, when you run DESC DATASHARE to see inbound datashares within the Amazon account, specify the NAMESPACE option. When you run DESC DATASHARE to see inbound datashares across Amazon accounts, specify the ACCOUNT and NAMESPACE options.

Examples

The following example displays the information for outbound datashares on a producer cluster.

DESC DATASHARE salesshare; producer_account | producer_namespace | share_type | share_name | object_type | object_name | include_new -----------------+---------------------------------------+-------------+--------------+-------------+------------------------------+-------------- 123456789012 | 13b8833d-17c6-4f16-8fe4-1a018f5ed00d | OUTBOUND | salesshare | TABLE | public.tickit_sales_redshift | 123456789012 | 13b8833d-17c6-4f16-8fe4-1a018f5ed00d | OUTBOUND | salesshare | SCHEMA | public | t

The following example displays the information for inbound datashares on a consumer cluster.

DESC DATASHARE salesshare of ACCOUNT '123456789012' NAMESPACE '13b8833d-17c6-4f16-8fe4-1a018f5ed00d'; producer_account | producer_namespace | share_type | share_name | object_type | object_name | include_new ------------------+--------------------------------------+------------+------------+-------------+------------------------------+-------------- 123456789012 | 13b8833d-17c6-4f16-8fe4-1a018f5ed00d | INBOUND | salesshare | table | public.tickit_sales_redshift | 123456789012 | 13b8833d-17c6-4f16-8fe4-1a018f5ed00d | INBOUND | salesshare | schema | public | (2 rows)