Re: PostGreSQL 8.1.0 : out of memory during vacuum full analyze - Mailing list pgsql-general

From Tom Lane
Subject Re: PostGreSQL 8.1.0 : out of memory during vacuum full analyze
Date
Msg-id 1886.1134400609@sss.pgh.pa.us
Whole thread Raw
In response to PostGreSQL 8.1.0 : out of memory during vacuum full analyze  (DANTE ALEXANDRA <ALEXANDRA.DANTE@BULL.NET>)
List pgsql-general
DANTE ALEXANDRA <ALEXANDRA.DANTE@BULL.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

pgsql-general by date:

Previous
From: Mark Mitchenall
Date:
Subject: Re: TSearch2: Auto identify document language?
Next
From: Tom Lane
Date:
Subject: Re: PL/pgSQL : notion of deferred execution