Re: [BUGS] BUG #6785: Memory Leak in plpgsql

2012-07-30 Thread Bruce Momjian
On Mon, Jul 30, 2012 at 05:56:22PM +0200, Andres Freund wrote: > Hi, > > On Monday, July 30, 2012 05:38:07 PM Anderson Valadares wrote: > > I understand, but the memory should not be returned after the execution of > > the function? > Well, that depends on how memory was allocated by the libc. Whe

Re: [BUGS] BUG #6785: Memory Leak in plpgsql

2012-07-30 Thread Andres Freund
Hi, On Monday, July 30, 2012 05:38:07 PM Anderson Valadares wrote: > I understand, but the memory should not be returned after the execution of > the function? Well, that depends on how memory was allocated by the libc. When it used brk() to allocate memory its rather likely that the memory canno

Re: [BUGS] BUG #6785: Memory Leak in plpgsql

2012-07-30 Thread Anderson Valadares
Hi, 2012/7/30 Andres Freund > Hi, > > On Monday, July 30, 2012 03:15:37 PM anderva...@gmail.com wrote: > > we recently had a memory exhaustion in the PostgreSQL server of the > > company, after a scan found a likely memory leak when using a plpgsql > > function. > > The problem occurred on an

Re: [BUGS] BUG #6785: Memory Leak in plpgsql

2012-07-30 Thread Andres Freund
Hi, On Monday, July 30, 2012 03:15:37 PM anderva...@gmail.com wrote: > we recently had a memory exhaustion in the PostgreSQL server of the > company, after a scan found a likely memory leak when using a plpgsql > function. > The problem occurred on an IBM x3400 server with 12G, CentOS 5.5 and >

[BUGS] BUG #6785: Memory Leak in plpgsql

2012-07-30 Thread andervalbh
The following bug has been logged on the website: Bug reference: 6785 Logged by: Anderson Valadares Email address: anderva...@gmail.com PostgreSQL version: 9.1.4 Operating system: Linux CentOS 5.5 Description: Hello,   we recently had a memory exhaustion in the Postgr