Postgres:PG_DUMP提供的创建语句与PGADMIN生成的语句不同
从pg_dump vs. pgadmin中获得不同的创建语句是常见的吗?
Is it common to get differing create statements from pg_dump vs. PgAdmin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pg_dump创建一个裸露的表,然后以后使用额外的命令来创建索引,约束等,即使在创建时间可以这样做的时候也是如此。在创建这些东西之前,这对于批量负载更有效,也可以避免依赖订单问题。
Pg_dump creates a bare table, then uses extra commands later to create the indexes, constraints, etc., even when it would be possible to do it so at creation time. This is more efficient to bulk load before those things are created, and can also avoid dependency order problems.