Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我,我如何在pg_dump不获取特定表记录的情况下进行数据库转储。
pg_dump
如果你想要一个表范围的过滤器,你可以使用 --exclude-table=table 或 --table=table 来响应。排除表或仅包括您想要的表。
如果你想“过滤掉”一些记录,那么你没有直接的选择。我最好的建议是:
这当然是非常初级的,可能还有其他适合您需求的解决方案。例如,使用纯文本格式转储,然后手动编辑转储以删除行。