From: Andres Freund <andres@anarazel.de>
To: pgsql-bugs@postgresql.org
Subject: Re: Postgresql 9.1.2 - abnormal memory usage
Date: Mon, 12 Dec 2011 00:45:23 +0100
Message-ID: <201112120045.23211.andres@anarazel.de> (raw)
In-Reply-To: <396904450.20111211221529@erwied.eu>
References: <396904450.20111211221529@erwied.eu>
Hi,
On Sunday, December 11, 2011 10:15:29 PM Jochen Erwied wrote:
> The following script can be used to show the behaviour:
>
> create database pgtest;
> \c pgtest
> create table test(var inet);
> insert into test(var) '127.0.0.0'::inet+generate_series(0,256*256*256-1);
> create index test_ix on test(var);
I can reproduce the issue. The memory is being spent at only one place:
TopMemoryContext: 68688 total in 10 blocks; 2736 free (10 chunks); 65952 used
TopTransactionContext: 8192 total in 1 blocks; 4856 free (0 chunks); 3336
used
PortalMemory: 8192 total in 1 blocks; 7888 free (0 chunks); 304 used
PortalHeapMemory: 15360 total in 4 blocks; 10640 free (17 chunks); 4720
used
TupleSort: 6283429096 total in 723 blocks; 1424704 free (0 chunks);
6282004392 used
Looking.
Andres
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: andres@anarazel.de
Subject: Re: Postgresql 9.1.2 - abnormal memory usage
In-Reply-To: <201112120045.23211.andres@anarazel.de>
References: <396904450.20111211221529@erwied.eu> <201112120045.23211.andres@anarazel.de>
* 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