EXPORT_CATALOG
This function and EXPORT_OBJECTS return equivalent output.
Generates a SQL script for recreating a physical schema design on another cluster.
The SQL script conforms to the following requirements:
- Only includes objects to which the user has access.
- Orders CREATE statements according to object dependencies so they can be recreated in the correct sequence. For example, if a table is in a non-PUBLIC schema, the required CREATE SCHEMA statement precedes the CREATE TABLE statement. Similarly, a table's CREATE ACCESS POLICY statement follows the table's CREATE TABLE statement.
- If possible, creates projections with their KSAFE clause, if any, otherwise with their OFFSET clause.
Syntax
EXPORT_CATALOG ( [ '[destination]' [, 'scope'] ] )
Arguments
If you omit all arguments, this function exports to standard output all objects to which you have access.
destination |
Specifies where to send output, one of the following:
|
scope |
Determines what to export. Within the specified scope, EXPORT_CATALOG exports all the objects to which you have access:
Default: DESIGN |
Privileges
None