pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: havasvolgyi.otto@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #6365: Memory leak in insert and update
Date: Thu, 29 Dec 2011 19:52:20 +0000
Message-ID: <E1RgM1U-0002Z1-Em@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6365
Logged by:          Otto Havasvölgyi
Email address:      havasvolgyi.otto@gmail.com
PostgreSQL version: 9.1.2
Operating system:   Win XP SP2 x86; Linux Debian 2.6.32 kernel x64
Description:        

The bug can be reproduced with pgbench:

Insert script:

\set nbranches 1*:scale
\set ntellers 10*:scale
\set naccounts 100000*:scale
\setrandom aid 1 :naccounts
\setrandom bid 1 :nbranches
\setrandom tid 1 :ntellers
\setrandom delta -5000 5000
insert into pgbench_history (tid, bid, aid, delta, mtime) values (:tid,
:bid, :aid, :delta, current_timestamp);

Update script:

\set nbranches 1*:scale
\set ntellers 10*:scale
\set naccounts 100000*:scale
\setrandom aid 1 :naccounts
\setrandom bid 1 :nbranches
\setrandom tid 1 :ntellers
\setrandom delta -5000 5000
update pgbench_accounts set abalance = abalance + :delta where aid = :aid;

Steps:

./pgbench -i -Uotto test

./pgbench -c1 -j1 -T200 -Msimple -N -r -v -f insert.sql -Uotto testdb

./pgbench -c1 -j1 -T200 -Msimple -N -r -v -f update.sql -Uotto testdb

During this test a continuous increase of the backend memory comsumption can
be observed. During the insert test the increase is quite bigger  than
during update.




view thread (5+ messages)  latest in thread

Message-ID: <E1RgM1U-0002Z1-Em@wrigleys.postgresql.org>
Permalink:  ../E1RgM1U-0002Z1-Em@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1RgM1U-0002Z1-Em@wrigleys.postgresql.org

 · 

reply

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: havasvolgyi.otto@gmail.com
  Subject: Re: BUG #6365: Memory leak in insert and update
  In-Reply-To: <E1RgM1U-0002Z1-Em@wrigleys.postgresql.org>
  References: <E1RgM1U-0002Z1-Em@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