From: yamamoto@valinux.co.jp
To: tgl@sss.pgh.pa.us
Cc: pgsql-bugs@postgresql.org
Cc: kgrittn@postgresql.org
Subject: Re: relcache reference leak on refresh materialized view concurrently
Date: Tue, 18 Mar 2014 10:30:42 +0900 (JST)
Message-ID: <20140318013042.BB80F71F23@kuma.localdomain> (raw)
In-Reply-To: <31494.1395086407@sss.pgh.pa.us>
References: <31494.1395086407@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: yamamoto@valinux.co.jp, tgl@sss.pgh.pa.us, kgrittn@postgresql.org
Subject: Re: relcache reference leak on refresh materialized view concurrently
In-Reply-To: <20140318013042.BB80F71F23@kuma.localdomain>
References: <31494.1395086407@sss.pgh.pa.us> <20140318013042.BB80F71F23@kuma.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox