dump
command extracts a PostgreSQL database schema for a specific schema and outputs it in a developer-friendly format. The dumped schema serves as a baseline that developers can modify and apply to target databases using the plan
and apply
commands.
--file
to specify the main output file path.schema.sql
file contains:
tables/users.sql
) contains the specific object definition:
pgschema
uses smart schema qualification to make dumps portable: