[COMMITTERS] pgsql: Fix relcache reference leak.

2017-03-07 Thread Robert Haas
Fix relcache reference leak.

Reported by Kevin Grittner.  Faulty commit identified by Tom Lane.
Patch by Amit Langote, reviewed by Michael Paquier.

Discussion: 
http://postgr.es/m/CACjxUsOHbH1=99u8mGxmLHfy5hov4ENEpvM6=3arjos7wg7...@mail.gmail.com

Branch
--
master

Details
---
http://git.postgresql.org/pg/commitdiff/d88d06cd0783933b7103d42d3f101baa22b37292

Modified Files
--
src/backend/commands/analyze.c |  7 +--
src/test/regress/expected/truncate.out |  6 ++
src/test/regress/expected/vacuum.out   |  9 +
src/test/regress/sql/truncate.sql  |  7 +++
src/test/regress/sql/vacuum.sql| 10 ++
5 files changed, 37 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


[COMMITTERS] pgsql: Fix relcache reference leak in refresh_by_match_merge().

2014-03-18 Thread Tom Lane
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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers