To start with we need to know what is the catalog and what does it serves for ?
Database Catalog
The catalog is a set of data about data also called metadata it stores information about the database objects.
To export the catalog in Vertica we need to use the export_catalog() function.
Basic syntax :
Where the options that can be passed to the function are:
DESIGN - is the default option and it will generate the DDL of schemas, tables, constraints, views, and projections.
DESIGN_ALL - will generate the DDL of design contexts and their tables.
TABLES - will generate the DDL of tables and constraints.
Examples of exporting the DDL of your catalog.
Using the default(DESIGN) option
Using the DESIGN_ALL option.
Using the TABLES option.
the exported file will contain only the create table and the constraints definition.
You can use the export_catalog function to export your metadata regularly and maintain a version control using Git or any other version control software.