gpt4 book ai didi

postgresql - 如何转储 PostgreSQL 数据库结构(每个对象在单独的文件中)

转载 作者:行者123 更新时间:2023-11-29 13:21:55 25 4
gpt4 key购买 nike

我正在使用 Postgres 8.4,我想转储数据库结构(无数据)。是否可以将每个对象(表、 View 、函数等)放在一个单独的文件中,而不是一个文件中的所有内容???

最佳答案

使用较新版本的 pg_dump (至少版本 9.1)你可以使用 --format=directory 转储到目录

This will create a directory with one file for each table and blob being dumped

关于postgresql - 如何转储 PostgreSQL 数据库结构(每个对象在单独的文件中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40281087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com