我想在将输出放入纯文本文件的 pg_dump 命令中排除一个序列。
Command: /Library/PostgreSQL/8.4/bin/pg_dump --host localhost --port 5433 --username xxx --format plain --clean --inserts --verbose --file /Users/xxx/documents/output/SYSTEM_admin_20131126015325.sql --exclude-table public.table1 --exclude-table public.table2 mydatabase
我知道在我上面使用的表中有开关,你可以像pg_dump文档中所述的那样,在tar格式中组合启用/禁用数据库对象,但是我不会使用pg_restore。
非常感谢。
Graham