我想从我的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
Run Code Online (Sandbox Code Playgroud)
我知道我正在使用上面的表的开关,你可以像pg_dump文档中所述的那样结合pg_restore启用/禁用tar格式的数据库对象,但我不会使用pg_restore.
非常感谢
格雷厄姆