Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPdhm-0006dO-4M for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Mar 2014 20:00:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WPdhk-0003Y2-NQ for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Mar 2014 20:00:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPdhj-0003Xs-Ml for pgsql-bugs@postgresql.org; Mon, 17 Mar 2014 20:00:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPdhg-0000ua-9K; Mon, 17 Mar 2014 20:00:11 +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 s2HK07gp031495; Mon, 17 Mar 2014 16:00:07 -0400 From: Tom Lane To: yamamoto@valinux.co.jp (YAMAMOTO Takashi) cc: pgsql-bugs@postgresql.org, kgrittn@postgresql.org Subject: Re: relcache reference leak on refresh materialized view concurrently In-reply-to: <20140317054945.BD7AB71A4D@kuma.localdomain> References: <20140317054945.BD7AB71A4D@kuma.localdomain> Comments: In-reply-to yamamoto@valinux.co.jp (YAMAMOTO Takashi) message dated "Mon, 17 Mar 2014 14:49:45 +0900" Date: Mon, 17 Mar 2014 16:00:07 -0400 Message-ID: <31494.1395086407@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 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 else { index_close(indexRel, NoLock); } at the bottom of the "if" would also fix the problem, and would be far easier to verify. 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