Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025.
If you would like to use Python UDFs, create the UDFs prior to that date.
Existing Python UDFs will continue to function as normal. For more information, see the
blog post
Creating the consumer database
On the consumer cluster, you create a database from the datashare. These steps describe how to share data between two clusters in the same account. For information on sharing data across Amazon accounts, see Sharing data across Amazon accounts in the Amazon Redshift Database Developer Guide.
You can use SQL commands or the query editor v2 tree-view panel to create the database.
To use SQL
-
Create a database from the datashare for your account and the namespace of the producer cluster. For example:
create database share_db from datashare mysource of account '123456789012' namespace 'p1234567-8765-4321-p10987654321';
-
Set permissions so that users can access the database and the schema. For example:
grant usage on database share_db to usernames;
grant usage on schema public to usernames;
To use the query editor v2 tree-view panel
-
Choose
Create, and then choose Database.
-
Enter a Database name.
-
(Optional) Select Users and groups, and choose a Database user.
-
Choose Create using a datashare.
-
Choose the datashare.
-
Choose Create database.
The new
datashare database displays in the query editor v2 tree-view panel.
-
Set permissions so that users can access the database and the schema. For example:
grant usage on database share_db to usernames;
grant usage on schema public to usernames;