Re: Bug? Query plans / EXPLAIN using gigabytes of memory - Mailing list pgsql-general

From Toby Corkindale
Subject Re: Bug? Query plans / EXPLAIN using gigabytes of memory
Date
Msg-id 4F98E7B6.506@strategicdata.com.au
Whole thread Raw
In response to Re: Bug? Query plans / EXPLAIN using gigabytes of memory  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bug? Query plans / EXPLAIN using gigabytes of memory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 26/04/12 15:30, Tom Lane wrote:
> Toby Corkindale<toby.corkindale@strategicdata.com.au>  writes:
>> On 26/04/12 13:11, Tom Lane wrote:
>>> Well, if you were to provide a reproducible test case, somebody might be
>>> motivated to look into it.  There could be a memory leak in the planner
>>> somewhere, but without a test case it's not very practical to go look
>>> for it.
>
>> Would a Perl-based script that built up a database like that be a useful
>> test case for you?
>
> Yeah, sure, just something that somebody else can run to duplicate the
> problem.
>
>> For what it's worth, I discovered something quite interesting. The
>> memory usage only blows out when I do an update based on the results of
>> the query.
>
> Hm, is the update target an inheritance tree?

The target is the parent table of a bunch of partitions.
The actual rows being updated live in those child tables.

Toby

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug? Query plans / EXPLAIN using gigabytes of memory
Next
From: Tom Lane
Date:
Subject: Re: Bug? Query plans / EXPLAIN using gigabytes of memory