From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix relcache reference leak in refresh_by_match_merge(). |
Date: | 2014-03-18 15:37:06 |
Message-ID: | E1WPw4g-0004w2-Re@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix relcache reference leak in refresh_by_match_merge().
One path through the loop over indexes forgot to do index_close(). Rather
than adding a fourth call, restructure slightly so that there's only one.
In passing, get rid of an unnecessary syscache lookup: the pg_index struct
for the index is already available from its relcache entry.
Per report from YAMAMOTO Takashi, though this is a bit different from his
suggested patch. This is new code in HEAD, so no need for back-patch.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f7271c44278352516ec66b2de311952ce330b6d5
Modified Files
--------------
src/backend/commands/matview.c | 41 +++++++++++++---------------------------
1 file changed, 13 insertions(+), 28 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-03-18 15:54:00 | pgsql: Rewrite comment for shm_mq_receive_bytes. |
Previous Message | Robert Haas | 2014-03-18 15:26:11 | pgsql: Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Siz |