Alvaro Herrera <alvherre@xxxxxxxxxxxxxxxxx> writes: > I wonder, though, if you set maintenance_work_mem too high and are > causing the OS to swap? AFAIR, vacuum full pays no attention to maintenance_work_mem anyway. If the data it needs doesn't fit in memory, you lose ... regards, tom lane