如何在postgres数据库中创建单个表的备份?

有没有办法使用postgres在数据库中创建单个表的备份?怎么做?这是否也适用于pg_dump命令

使用--table告诉pg_dump它必须备份的表:

pg_dump--host localhost--port 5432--username postgres--format plain--verbose--file&quot&书信电报;摘要文件路径&gt&引用--表public.tablename dbname

发表评论