aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-03-18 11:36:45 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-03-18 11:36:53 -0400
commitf7271c44278352516ec66b2de311952ce330b6d5 (patch)
tree780a328ed198459a8d1968a8a759472becfb4bf1 /src/include/postgres_ext.h
parent3bd261ca18c67eafe18088e58fab511e3b965418 (diff)
downloadpostgresql-f7271c44278352516ec66b2de311952ce330b6d5.tar.gz
postgresql-f7271c44278352516ec66b2de311952ce330b6d5.zip
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.
Diffstat (limited to 'src/include/postgres_ext.h')
0 files changed, 0 insertions, 0 deletions