Postgresql pg_转储不排除表数据
我很难让Postgresql pg_转储不排除表数据,postgresql,Postgresql,我很难让--exclude table data选项真正排除我的表的内容。cache\u数据表仍然会被导出。有什么想法吗 pg_dump(PostgreSQL)11.11: pg_dump --verbose --clean --no-owner --no-acl \ -f /tmp/db-dump.sql \ --exclude-table '*.test*' \ --exclude-table-data '*.cache' \ --exclude-table-data '*.
--exclude table data
选项真正排除我的表的内容。cache\u数据
表仍然会被导出。有什么想法吗
pg_dump(PostgreSQL)11.11
:
pg_dump --verbose --clean --no-owner --no-acl \
-f /tmp/db-dump.sql \
--exclude-table '*.test*' \
--exclude-table-data '*.cache' \
--exclude-table-data '*.cache_data' \
--exclude-table-data 'public.cache_data' \
--exclude-table-data 'cache_data' \
--exclude-table-data '*.cache_*'
我尝试了这些表名的每一种组合,但我仍然在我们的输出日志中得到一个2.6GB的文件
pg_dump: processing data for table "public.cache_data"
pg_dump: dumping contents of table "public.cache_data"
你在什么操作系统上这么做?(/me看到后问道:)(Ubuntu11.11-1.pgdg18.04+1)我试图使用pg_dump版本13.3在Mac上复制精简版,但在
--排除表数据
中没有发现任何错误。如果这样做会发生什么:-t public.cache_data--排除表数据'public.cache_data'
?