From: bock@openit.de
To: pgsql-bugs@postgresql.org
Subject: BUG #6378: exceeding memory usage while creating index in pg-9.1.2
Date: Wed, 04 Jan 2012 13:35:28 +0000
Message-ID: <E1RiR04-0001Wd-SS@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6378
Logged by: Julian v. Bock
Email address: bock@openit.de
PostgreSQL version: 9.1.2
Operating system: Linux x86_64
Description:
When creating an index on an inet column the postmaster process tries to
allocate much more memory than it should in version 9.1.2.
In my test db (maintenance_work_mem = 1gb; shared_buffers = 256mb) the
CREATE INDEX in the script below runs out of memory after allocating several
GB. Note that this does not happen with version 9.1.1 (only a few hundred MB
are allocated).
-----------
create table iptest ( id serial primary key, ip inet );
insert into iptest ( ip )
( select ( '192.' || a || '.' || b || '.' || c )::inet
from generate_series( 0, 127 ) a,
generate_series( 0, 255 ) b,
generate_series( 0, 255 ) c );
create index iptest_idx_1 on iptest ( ip );
-----------
Regards,
Julian v. Bock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bock@openit.de
Subject: Re: BUG #6378: exceeding memory usage while creating index in pg-9.1.2
In-Reply-To: <E1RiR04-0001Wd-SS@wrigleys.postgresql.org>
References: <E1RiR04-0001Wd-SS@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox