postgresql数据库结构脚本

1 postgresql scripting dump

如何在没有数据(模式,表,...)的情况下通过命令行获取我的数据库结构.

DrC*_*sos 5

http://www.postgresql.org/docs/current/interactive/app-pgdump.html

pg_dump -s -U username database > backup.sql
Run Code Online (Sandbox Code Playgroud)

虽然没有测试过,所以不确定它是否有效.

编辑:那里有德国链接;)