Re: ffunc called multiple for same value

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Burrell <imb(at)rentrak(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ffunc called multiple for same value
Date: 2004-07-23 21:01:23
Message-ID: 28033.1090616483@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ian Burrell <imb(at)rentrak(dot)com> writes:
> We are doing things in the aggregates that make them troublesome when
> called the ffunc is called multiple times. The state structure uses a
> lot of memory for intermediate work. The memory needs to be freed as
> soon as possible otherwise there is a danger of running of out memory.

Possibly you should just force enable_hashagg off, if you are concerned
about memory usage. ISTM that running multiple transvalue calculations
in parallel is a bad idea from the start, if you are feeling that tense
about the amount of memory that will be chewed up by just one.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-07-23 21:06:31 Re: psql listTables
Previous Message Tom Lane 2004-07-23 20:58:55 Re: [HACKERS] Tutorial