Re: Re: [COMMITTERS] pgsql: Get rid of the need for manual maintenance of the initial

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Get rid of the need for manual maintenance of the initial
Date: 2010-01-05 19:04:05
Message-ID: 20100105190404.GH3660@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Stefan Kaltenbrunner escribió:

> foreach my $row (@$data)
> {
>
> # To construct fmgroids.h and fmgrtab.c, we need to inspect some
> # of the individual data fields. Just splitting on whitespace
> # won't work, because some quoted fields might contain internal
> # whitespace. We handle this by folding them all to a simple
> # "xxx". Fortunately, this script doesn't need to look at any
> # fields that might need quoting, so this simple hack is
> # sufficient.
>
> ...
> }
>
> it does after around 1050 iterations of that loop at it seems to
> leak exactly 240kbyte per iteration which sums up to around 250MB in
> total for the process...

Hmm, is this running some old Perl version? Perhaps it's not freeing
memory timely ... maybe unsetting/deleting $row after each iteration?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2010-01-05 19:23:15 Re: Re: [COMMITTERS] pgsql: Get rid of the need for manual maintenance of the initial
Previous Message Tom Lane 2010-01-05 19:02:51 Re: Re: [COMMITTERS] pgsql: Get rid of the need for manual maintenance of the initial

Browse pgsql-hackers by date

  From Date Subject
Next Message Markus Wanner 2010-01-05 19:06:37 Re: Testing with concurrent sessions
Previous Message Tom Lane 2010-01-05 19:02:51 Re: Re: [COMMITTERS] pgsql: Get rid of the need for manual maintenance of the initial