我使用的软件,这使得一个很大的PostgreSQL数据库(有一个表中有一个百万行)和开发商说我应该VACUUM
和ANALYZE
周期性。但是 PostgreSQL 数据库默认是autovacuum
开启的。
我应该抽真空/分析吗?有什么好处?自动抽真空和手动抽真空有什么区别
例如,在 Pgadmin3 中,我有这个:
I'm running out of space from my hard drive which has a 18GB PostgreSQL database.
When I try pg_dump
to a different drive, PostgreSQL creates temporary files on the disk it's dumping from, so I run out of space and the dump fails.
I tried this from Stackoverflow and a small file is created in the new directory, but nothing else, and pg_dump
still writes to the original disk.
How do I change temp directory for pg_dump
?
Note: My …