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

From: Pandurangan R S <pandurangan(dot)r(dot)s(at)gmail(dot)com>
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 09:38:13
Message-ID: 5e744e3d0512120138o54040b07h36b324fe1f679c18@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

you need to increase maintenance_work_mem in postgresql.conf file.

http://www.powerpostgresql.com/Downloads/annotated_conf_80.html

Regards
Pandu

On 12/12/05, DANTE ALEXANDRA <ALEXANDRA(dot)DANTE(at)bull(dot)net> wrote:
> Hello,
>
> This is my first posting in this mailing list and I am a PostGreSQL newbie.
> I've posted this message in the "novice" mailing list last friday, but I
> have any response.
> I hope somenone could help me.
>
> I realize a benchmarck on PostGreSQL on a 300Gb database. I used the
> release 8.1.0.
>
> I have created my database, which contains 8 tables, loaded each table
> and created the appropriate indexes.
> 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).
> This description of this table is :
> TPCH=# \d lineitem
> Table "public.lineitem"
> Column | Type | Modifiers
> -----------------+-----------------------+-----------
> l_orderkey | bigint | not null
> l_partkey | bigint | not null
> l_suppkey | bigint | not null
> l_linenumber | bigint | not null
> l_quantity | numeric |
> l_extendedprice | numeric |
> l_discount | numeric |
> l_tax | numeric | not null
> l_returnflag | character(1) |
> l_linestatus | character(1) |
> l_shipdate | date |
> l_commitdate | date |
> l_receiptdate | date |
> l_shipinstruct | character(25) |
> l_shipmode | character(10) |
> l_comment | character varying(44) |
> Indexes:
> "i_l_orderkey" btree (l_orderkey), tablespace "tb_index"
> Tablespace: "tb_lit"
>
>
> Three hours after having launched the command, I've got this error :<>
>
> <>TPCH=# VACUUM FULL VERBOSE ANALYZE lineitem;
> <>INFO: vacuuming "public.lineitem"
> <>*ERROR: out of memory*
> DETAIL: Failed on request of size 67108864.
>
> I do not try to launch again a vacuum full analyze on this table.
>
> Can someone tell me why this error appears ?
> Thank you for your help.
>
> Regards,
> Alexandra DANTE
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shriganesh Shintre 2005-12-12 09:45:42 Silent installation of postgres
Previous Message DANTE ALEXANDRA 2005-12-12 09:21:00 PostGreSQL 8.1.0 : out of memory during vacuum full analyze