Re: PostGreSQL 8.1.0 : out of memory during vacuum full analyze

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: DANTE ALEXANDRA <ALEXANDRA(dot)DANTE(at)BULL(dot)NET>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostGreSQL 8.1.0 : out of memory during vacuum full analyze
Date: 2005-12-12 15:16:49
Message-ID: 1886.1134400609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DANTE ALEXANDRA <ALEXANDRA(dot)DANTE(at)BULL(dot)NET> writes:
> Then, on each table, I have launched the "VACUUM FULL ANALYZE" command
> as a non-root user.
> This command failed on the last table, the biggest, called "lineitem"
> which contains 1799989091 rows (near 300 Gb of datas).

VACUUM FULL requires workspace proportional to the number of blocks in
the table. You probably need to bump up the kernel's per-process memory
limit (see ulimit and so on) if you want to VACUUM FULL such a large table.

My advice: you shouldn't be using VACUUM FULL anyway. Quite aside from
the memory issue, it's likely to take forever and a day.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-12-12 15:29:28 Re: PL/pgSQL : notion of deferred execution
Previous Message Tony Caduto 2005-12-12 14:52:34 Re: Free Pascal and Postgresql Functions, Possible?