The PGSQL_MAINTENANCE_WORK_MEM variable specifies the maximum amount of memory to be used in maintenance operations such as VACUUM.
Integer (in MB)
64
For most sites, CollabNet recommends that you set this to 256MB.