Generates nicely parsed schema files for PostgreSQL.
Every schema-qualified object is parsed into its own schema file while non-schema-qualified objects are parsed as utilities with
a generic schema name others
.
python3.9
and abovepg_dump
psql
- Create
pg_schema_dump_parser.config
with templatepg_schema_dump_parser.config.sample
replacing the necessary values - Then you can call the program as such:
P.S In the above example, (
./pg_schema_dump_parser.py --directory . --configfile pg_schema_dump_parser.config
.
) translates to the current working directory.
A metadata is generated along with the schema files. It contains details of the database version, database host, database name, pg_dump version and warnings.