Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ3dn-0004aE-8m for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 23:41:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WQ3dm-0005WZ-K6 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 23:41:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ3dk-0005WO-HY for pgsql-bugs@postgresql.org; Tue, 18 Mar 2014 23:41:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WQ3dh-000542-Rr for pgsql-bugs@postgresql.org; Tue, 18 Mar 2014 23:41:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2INfWnq032101; Tue, 18 Mar 2014 19:41:32 -0400 From: Tom Lane To: Sandro Santilli cc: Craig Ringer , Florian Pflug , pgsql-bugs@postgresql.org Subject: Re: Leaking regexp_replace in 9.3.1 ? (was: [HACKERSUninterruptable regexp_replace in 9.3.1 ?) In-reply-to: <20140318170401.GE29859@localhost> References: <20140221091759.GK6924@localhost> <530774E5.5040105@2ndquadrant.com> <53077EED.2000907@2ndquadrant.com> <3663.1393002213@sss.pgh.pa.us> <646.1393031856@sss.pgh.pa.us> <20140226150113.GD9740@localhost> <20140318170401.GE29859@localhost> Comments: In-reply-to Sandro Santilli message dated "Tue, 18 Mar 2014 18:04:01 +0100" Date: Tue, 18 Mar 2014 19:41:32 -0400 Message-ID: <32100.1395186092@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Sandro Santilli writes: > Tom: I saw you pushed a fix for the interruptability with this: > https://github.com/postgres/postgres/commit/f5f21315d25ffcbfe7c6a3fa6ffaad54d31bcde0 > But we also noticed a memory leak in the regepx_replace call, did you notice > that in your tests ? Same regexp as reported. Do you need another testcase ? I see no memory growth while running your original example against HEAD. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs