pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Craig Ringer <ringerc@ringerc.id.au>
To: luben karavelov <karavelov@mail.bg>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6763: Severe memory leak with arrays and hstore
Date: Fri, 27 Jul 2012 10:30:53 +0800
Message-ID: <5011FD5D.3040503@ringerc.id.au> (raw )
In-Reply-To: <10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg >
References: <E1SuCw0-0007s2-5D@wrigleys.postgresql.org >
<5010FD0F.4020400@ringerc.id.au >
<10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg >
Hi all
Here's a fully self contained, automated test case that demonstrates the
leak.
Example output on my system, pasted as quote to stop Thunderbird
mangling it:
> $ ./hstore-leak-demo.sh
> NOTICE: extension "hstore" already exists, skipping
> CREATE EXTENSION
> DROP TABLE
> CREATE TABLE
> CREATE TABLE
> INSERT 0 100000
> INSERT 0 80175
> INSERT 0 72267
> INSERT 0 50649
> INSERT 0 30430
> avg | max
> --------------------+-----
> 3.3352100000000000 | 20
> (1 row)
>
> Backend PID is: 3167
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 0.0 0.0 504276 4368 ? Ss 10:29 0:00 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 91.0 13.0 2163384 1055652 ? Ss 10:29 0:00 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 77.5 13.2 2163408 1071496 ? Ss 10:29 0:01 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 108 13.4 2163408 1084056 ? Ss 10:29 0:02 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 93.0 13.5 2163408 1092244 ? Ss 10:29 0:02 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 86.0 13.6 2163408 1100444 ? Ss 10:29 0:03 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 101 13.7 2163408 1108704 ? Ss 10:29 0:04 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 93.8 13.8 2163408 1116896 ? Ss 10:29 0:04 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 88.8 13.9 2163408 1125048 ? Ss 10:29 0:05 postgres: craig regress [local] idle
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> postgres 3167 99.1 14.0 2163408 1133228 ? Ss 10:29 0:05 postgres: craig regress [local] idle
Attachments:
hstore-leak-demo.sh (application/x-shellscript, 1.8K) download
view thread (15+ messages) latest in thread
Message-ID: <5011FD5D.3040503@ringerc.id.au>
Permalink: ../5011FD5D.3040503@ringerc.id.au/
Also on: postgresql.org/message-id/5011FD5D.3040503@ringerc.id.au
copy link · copy postgr.es
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: ringerc@ringerc.id.au, karavelov@mail.bg
Subject: Re: BUG #6763: Severe memory leak with arrays and hstore
In-Reply-To: <5011FD5D.3040503@ringerc.id.au>
References: <E1SuCw0-0007s2-5D@wrigleys.postgresql.org> <5010FD0F.4020400@ringerc.id.au> <10398EEF-03DE-405E-B276-06F73ABF9E3A@mail.bg> <5011FD5D.3040503@ringerc.id.au>
* 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