/home/postgres/pgsql/bin/pg_dump -Upostgres -d if -s  --no-tablespaces  -f if_create_obj.sql

导出数据

  • copy形式
/home/postgres/pgsql/bin/pg_dump -Upostgres -d if -a  --no-tablespaces   -f if_init.sql
  • insert语句形式(通过添加–inserts选项)
/home/postgres/pgsql/bin/pg_dump -Upostgres -d if -a  --no-tablespaces  --inserts -f if_init.sql

相关文章:

  • 2021-07-12
  • 2021-09-02
  • 2021-09-06
猜你喜欢
  • 2022-01-10
  • 2022-01-04
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-08-02
  • 2021-07-27
相关资源
相似解决方案