Re: migration to 9.6 array_accum memory issues

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jiri Sadek <jiri(dot)sadek(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: migration to 9.6 array_accum memory issues
Date: 2017-03-27 13:46:08
Message-ID: 16167.1490622368@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jiri Sadek <jiri(dot)sadek(at)gmail(dot)com> writes:
> we are in the process of migrating postgresql 9.1 to 9.6 and we
> encounter a memory issues with 9.6 - one of our procedure consumed all
> free memory (~8GB) of the testing server (and make it to swap), there
> was never such problem with 9.1. After some testing we found out that it
> is caused by user-defined aggregate array_accum (defined as in postgres
> documentation). We rewrote this procedure using built-in array_agg
> function and it seems to work better (at least it is usable).

9.6.what?

I think you'll find that 9.6.2 makes this significantly better.

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=48a6592da

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jiri Sadek 2017-03-27 15:01:37 Re: migration to 9.6 array_accum memory issues
Previous Message Michael Paquier 2017-03-27 13:06:55 Re: Index loading methods