Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-11 Thread Stephen Frost
* Pawel Kozik (pawel.ko...@alcatel-lucent.com) wrote: > Any idea when it will be available in official PostgreSQL release 9.1.x or > 9.2.x ? Yes, the next set of point releases should include Tom's patch to fix this leak. Thanks, Stephen signature.asc Description: Digi

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-11 Thread Pawel Kozik
Any idea when it will be available in official PostgreSQL release 9.1.x or 9.2.x ? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Memory-leak-in-BackgroundWriter-and-Checkpointer-tp5757869p5758783.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Naoya Anzai
Tom, Stephen, Heikki and Andres, You do FAST work! Thanks for your prompt responses. --- Naoya Anzai NEC Soft,Ltd. http://www.necsoft.com/eng/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Stephen Frost
* Tom Lane (t...@sss.pgh.pa.us) wrote: > I'm already working on back-patching the attached. Works for me, Thanks! Stephen signature.asc Description: Digital signature

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Tom Lane
Stephen Frost writes: > * Tom Lane (t...@sss.pgh.pa.us) wrote: >> I think the proposed fix is fine code-wise; the real problem here is >> crummy commenting. GetRunningTransactionLocks isn't documented as >> returning a palloc'd array, and why the heck do we have a long comment >> about its implem

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Stephen Frost
* Tom Lane (t...@sss.pgh.pa.us) wrote: > Meh. I'm not impressed with permanently allocating an array large > enough to hold all the locks GetRunningTransactionLocks > might return --- that's potentially much larger than the other array, > and in fact I don't think we have a hard limit on its size

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Stephen Frost
* Andres Freund (and...@2ndquadrant.com) wrote: > Seems more consistent with the rest of the code too. But anyway, I am > fine with fixing it either way. Patch attached which mirrors what GetRunningTransactionData() (the other function called from LogStandbySnapshot) does, more-or-less- uses a sta

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Tom Lane
Stephen Frost writes: > * Andres Freund (and...@2ndquadrant.com) wrote: >> Seems more consistent with the rest of the code too. But anyway, I am >> fine with fixing it either way. > And this is really the other point- having LogStandbySnapshot() need to > clean up after GetRunningTransactionLocks

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Stephen Frost
* Andres Freund (and...@2ndquadrant.com) wrote: > On 2013-06-04 16:23:00 +0300, Heikki Linnakangas wrote: > > I can't get too excited about the overhead of a single palloc here. It's a > > fairly heavy operation anyway, and only runs once per checkpoint. And we > > haven't heard any actual complain

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Andres Freund
On 2013-06-04 16:23:00 +0300, Heikki Linnakangas wrote: > On 04.06.2013 15:27, Stephen Frost wrote: > >* Naoya Anzai (anzai-na...@mxu.nes.nec.co.jp) wrote: > >>I've found a memory-leak bug in PostgreSQL 9.1.9's background > >>writer process. > > > >This looks legit, but probably not the right appro

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Heikki Linnakangas
On 04.06.2013 15:27, Stephen Frost wrote: * Naoya Anzai (anzai-na...@mxu.nes.nec.co.jp) wrote: I've found a memory-leak bug in PostgreSQL 9.1.9's background writer process. This looks legit, but probably not the right approach to fixing it. Looks like it'd be better to work out a way to use a

Re: [BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Stephen Frost
* Naoya Anzai (anzai-na...@mxu.nes.nec.co.jp) wrote: > I've found a memory-leak bug in PostgreSQL 9.1.9's background > writer process. This looks legit, but probably not the right approach to fixing it. Looks like it'd be better to work out a way to use a static variable to reuse the same memory,

[BUGS] Memory-leak in BackgroundWriter(and Checkpointer)

2013-06-04 Thread Naoya Anzai
Hi All. I've found a memory-leak bug in PostgreSQL 9.1.9's background writer process. When following parameter is set, it occurs every time CHECKPOINT runs. wal_level = hot_standby I've also confirmed REL9_1_STABLE and it is not fixed yet. In additional, it also occurs in 9.3.beta1's checkpo

Re: [BUGS] memory leak in postgresql

2011-10-11 Thread Pavel Stehule
2011/10/11 Tom Lane : > Pavel Stehule writes: >> I found a following issue (tested on PostgreSQL 9.2) > >> CREATE OR REPLACE FUNCTION public.setfield(a anyelement, text, text) >> RETURNS anyelement >> LANGUAGE plpgsql >> AS $function$ >> begin >>   create temp table aux as select $1.*; >>   execut

Re: [BUGS] memory leak in postgresql

2011-10-11 Thread Tom Lane
Pavel Stehule writes: > I found a following issue (tested on PostgreSQL 9.2) > CREATE OR REPLACE FUNCTION public.setfield(a anyelement, text, text) > RETURNS anyelement > LANGUAGE plpgsql > AS $function$ > begin > create temp table aux as select $1.*; > execute 'update aux set ' || quote_iden

[BUGS] memory leak in postgresql

2011-10-11 Thread Pavel Stehule
Hello I found a following issue (tested on PostgreSQL 9.2) CREATE OR REPLACE FUNCTION public.setfield(a anyelement, text, text) RETURNS anyelement LANGUAGE plpgsql AS $function$ begin create temp table aux as select $1.*; execute 'update aux set ' || quote_ident($2) || ' = ' || quote_literal(

Re: [BUGS] memory leak in xml2 contrib module

2010-12-14 Thread Tomas Vondra
Dne 14.12.2010 21:50, Robert Haas napsal(a): > On Fri, Nov 26, 2010 at 7:54 AM, wrote: >> one of my colleagues found ugly memory leak in the xml2 contrib module. >> Try this: >> >> select xpath_number('' || generate_series || '','/data') from >> generate_series(1,50); >> >> This will allocate

Re: [BUGS] memory leak in xml2 contrib module

2010-12-14 Thread Robert Haas
On Fri, Nov 26, 2010 at 7:54 AM, wrote: > one of my colleagues found ugly memory leak in the xml2 contrib module. > Try this: > > select xpath_number('' || generate_series || '','/data') from > generate_series(1,50); > > This will allocate arbitrary amount of memory, and it won't release it >

[BUGS] memory leak in xml2 contrib module

2010-11-26 Thread tv
Hi, one of my colleagues found ugly memory leak in the xml2 contrib module. Try this: select xpath_number('' || generate_series || '','/data') from generate_series(1,50); This will allocate arbitrary amount of memory, and it won't release it until the backend exits (user disconnects). We've

[BUGS] memory leak in 8.2.4

2008-07-18 Thread Kevin Grittner
Resend attempt -- previous attempt rejected for size. I have NOT attached the PostgreSQL log (110kB) to this attempt. -- We had an odd problem the other night which appears to be a rare but serious bug in PostgreSQL 8.2.4. I don't see anything in the release notes to indicate that thi

Re: [BUGS] Memory leak

2004-08-27 Thread Spencer Quin
PROTECTED] Sent: Tuesday, August 24, 2004 4:13 PM To: Spencer Quin Cc: [EMAIL PROTECTED]; Thomas Parry; Geoffrey Stitt Subject: Re: [BUGS] Memory leak "Spencer Quin" <[EMAIL PROTECTED]> writes: > I have found a memory leak in the libpq library for postrgesql 7.4.3. > The code

Re: [BUGS] Memory leak

2004-08-26 Thread Tom Lane
"Spencer Quin" <[EMAIL PROTECTED]> writes: > Tom, I am not sure if my original message made it onto a forum or > knowledge base but I was wondering if it would be possible for you to > take it down if it is? There may potentially be some sensitive > information in it. The bugs list is archived, y

Re: [BUGS] Memory leak

2004-08-25 Thread Spencer Quin
bject: Re: [BUGS] Memory leak "Spencer Quin" <[EMAIL PROTECTED]> writes: > I have found a memory leak in the libpq library for postrgesql 7.4.3. > The code sample in the attached file will produce the error. The traceback says that the leak is in libresolv, not libpq. I'

Re: [BUGS] Memory leak

2004-08-24 Thread Tom Lane
"Spencer Quin" <[EMAIL PROTECTED]> writes: > I have found a memory leak in the libpq library for postrgesql 7.4.3. > The code sample in the attached file will produce the error. The traceback says that the leak is in libresolv, not libpq. I'm not sure it's really a leak at all --- I'd expect libr

[BUGS] Memory leak

2004-08-24 Thread Spencer Quin
I have found a memory leak in the libpq library for postrgesql 7.4.3.  The code sample in the attached file will produce the error. I used Valgrind(http://valgrind.kde.org/) which is an open source memory profiler application in order to find the problem.   Machine: Pentium 4 OS: Linux

Re: [BUGS] Memory leak detected

2002-11-28 Thread Tom Lane
Diego Zuccato <[EMAIL PROTECTED]> writes: > NOTICE: PortalHeapMemoryFree: 0x0x8233790 not in alloc set! I'd suggest updating to a newer version of Postgres. That's got to be 7.0 or older. regards, tom lane ---(end of broadcast)---

[BUGS] Memory leak detected

2002-11-28 Thread Diego Zuccato
Hello. I found that strange behaviour: gsbusb=# select g.cod, (select count(*) from scatt where grotta=g.cod) as att, count(*) from grotte g, immagine i, scatt a where i.scattata_in=g.cod group by g.cod, att; NOTICE: PortalHeapMemoryFree: 0x0x8233790 not in alloc set! NOTICE: Buffer Leak: [056]

[BUGS] memory leak while using vacuum

2001-08-27 Thread Achim Krümmel
If PostgreSQL failed to compile on your computer or you found a bug that is likely to be specific to one platform then please fill out this form and e-mail it to [EMAIL PROTECTED] To report any other bug, fill out the form below and e-mail it to [EMAIL PROTECTED] If you not only found the prob

Re: [BUGS] memory leak while using vaccum

2001-08-23 Thread Tom Lane
Achim =?iso-8859-1?Q?Kr=FCmmel?= <[EMAIL PROTECTED]> writes: > when using "vacuum analyze " on very large tables (I have one > with about 30GB) the memory usage increases continues until no memory is > left and the kernel stops this process. I don't have 30Gb to spare, but I set up a table of the

[BUGS] memory leak while using vaccum

2001-08-22 Thread Achim Krümmel
I am running a PostgreSQL 7.1.3 on a Intel Pentium III My operating system is SuSE Linux 7.1 with Kernel 2.4.4 (ELF) I compiled postgresql with gcc 2.95.2 My problem: when using "vacuum analyze " on very large tables (I have one with about 30GB) the memory usage increases continues until no memo

Re: [BUGS] memory leak while using vaccum

2001-08-22 Thread Tom Lane
Achim =?iso-8859-1?Q?Kr=FCmmel?= <[EMAIL PROTECTED]> writes: > I suppose this problem is easy to reproduce. No, it isn't. At the very least, we need the full schema for the table causing this. regards, tom lane ---(end of broadcast)--

[BUGS] memory leak while using vaccum

2001-08-21 Thread Achim Krümmel
I am running a PostgreSQL 7.1.3 on a Intel Pentium III My operating system is SuSE Linux 7.1 with Kernel 2.4.4 (ELF) I compiled postgresql with gcc 2.95.2 My problem: when using "vacuum analyze " on very large tables (I have one with about 30GB) the memory usage increases continues until no memo

RE: [BUGS] Memory leak in 7.0.3 JDBC driver

2001-06-20 Thread Rainer Mager
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Sullivan > Sent: Monday, June 18, 2001 2:59 AM > To: [EMAIL PROTECTED] > Subject: [BUGS] Memory leak in 7.0.3 JDBC driver > > > > Hi, > > I'm running P

RE: [BUGS] Memory leak in ODBC driver

2001-03-13 Thread Terry Carlin
;<<<<<<<<<< On 3/9/01, 10:37:10 PM, "Hiroshi Inoue" <[EMAIL PROTECTED]> wrote regarding RE: [BUGS] Memory leak in ODBC driver: > > -Original Message- > > From: [EMAIL PROTECTED] > > > > Terry Carlin ([EMAIL PROTECTED]) repo

RE: [BUGS] Memory leak in ODBC driver

2001-03-09 Thread Hiroshi Inoue
> -Original Message- > From: [EMAIL PROTECTED] > > Terry Carlin ([EMAIL PROTECTED]) reports a bug with a severity of 2 > The lower the number the more severe it is. > > Short Description > Memory leak in ODBC driver > > Long Description > As part of Great Bridge QA testing, we run the AS

[BUGS] Memory leak in ODBC driver

2001-03-09 Thread pgsql-bugs
Terry Carlin ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description Memory leak in ODBC driver Long Description As part of Great Bridge QA testing, we run the AS3AP, TPC-C, and TPC-D benchmarks using 1 to 100 users. Our benchmarking

Re: [BUGS] memory leak while using cursors

2001-02-12 Thread Craig Schlenter
On Sun, Feb 11, 2001 at 12:59:16PM -0500, Tom Lane wrote: > [EMAIL PROTECTED] writes: > > memory leak while using cursors > > > DECLARE BOB CURSOR FOR select date_part('epoch', call_time), date_part('hour', >call_time), date_part('minute', call_time), date_part('dow', call_time), * from >call_j

Re: [BUGS] memory leak while using cursors

2001-02-11 Thread Tom Lane
[EMAIL PROTECTED] writes: > memory leak while using cursors > DECLARE BOB CURSOR FOR select date_part('epoch', call_time), date_part('hour', >call_time), date_part('minute', call_time), date_part('dow', call_time), * from >call_jan where call_time >= '2000/12/16 00:00:00.000' and call_time < '2

[BUGS] memory leak while using cursors

2001-02-11 Thread pgsql-bugs
Craig Schlenter ([EMAIL PROTECTED]) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description memory leak while using cursors Long Description Hi I'm trying to get a large result set back from a postgres 7.02 database and am bumping my head into the limita

Re: [BUGS] memory leak in date_part() function in v7.1beta3 ?

2001-01-28 Thread Tom Lane
doj <[EMAIL PROTECTED]> writes: > I was experimenting with the 7.1beta3 release. When I use the > date_part() function in one query several thousand times (in updates for > example) the postmaster consumes all available memory, until it dies, > with a "no memory left error". If I execute the same

Re: [BUGS] memory leak in date_part() function in v7.1beta3 ?

2001-01-27 Thread Tom Lane
doj <[EMAIL PROTECTED]> writes: > It assume that date_part() has a serious memory leak. > If you like a can reproduce some queries that fail on my machine and > send them to you with a second email. Yes, we need to see the exact sequence of queries ... regards, tom lane

[BUGS] memory leak in date_part() function in v7.1beta3 ?

2001-01-27 Thread doj
Hello Developers, at first, thank you for the wonderful work you did on the excellent database. I was experimenting with the 7.1beta3 release. When I use the date_part() function in one query several thousand times (in updates for example) the postmaster consumes all available memory, until it d