Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPyXe-0008Un-Po for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 18:15:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WPyXe-0003gs-2Y for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Mar 2014 18:15:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPirj-0003xB-QZ for pgsql-bugs@postgresql.org; Tue, 18 Mar 2014 01:30:51 +0000 Received: from mail.valinux.co.jp ([210.128.90.3]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPire-00078J-Nq; Tue, 18 Mar 2014 01:30:50 +0000 Received: from kuma.localdomain (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with ESMTP id E3897489CC; Tue, 18 Mar 2014 10:30:42 +0900 (JST) Received: by kuma.localdomain (Postfix, from userid 1000) id BB80F71F23; Tue, 18 Mar 2014 10:30:42 +0900 (JST) To: tgl@sss.pgh.pa.us Cc: pgsql-bugs@postgresql.org, kgrittn@postgresql.org Subject: Re: relcache reference leak on refresh materialized view concurrently In-Reply-To: Your message of "Mon, 17 Mar 2014 16:00:07 -0400" <31494.1395086407@sss.pgh.pa.us> References: <31494.1395086407@sss.pgh.pa.us> X-Mailer: Cue version 0.8 (140304-1800/takashi) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Message-Id: <20140318013042.BB80F71F23@kuma.localdomain> Date: Tue, 18 Mar 2014 10:30:42 +0900 (JST) From: yamamoto@valinux.co.jp (YAMAMOTO Takashi) X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean 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 > yamamoto@valinux.co.jp (YAMAMOTO Takashi) writes: >> the following patch fixes missing index_close in case >> the mv has non-unique indexes. > > Hm ... I see the leak, I think, but isn't this an extraordinarily > complex patch? Looks like adding i tend to think it's simpler, but it's a matter of taste. > > else > { > index_close(indexRel, NoLock); > } > > at the bottom of the "if" would also fix the problem, and would be > far easier to verify. yes, it's probably the physically smallest patch. YAMAMOTO Takashi > > 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