问题 I want to export all objects DDL to separate file example ( table_a_create.sql , view_b_create.sql , trigger_c_create.sql , table_contraints.sql ...) I was trying with pg_dump but it only exports to one file for the whole schema. I read some questions about this on stackoverflow but still not enough for my requirement Ex: How to dump PostgreSQL database structure (each object in separate file) Is there any way to do it? I'm using Windows 回答1: If you are on the client machine, you can put this