git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7db0cd2) | patch
pageinspect: Fix relcache leak in gist_page_items().
2021年1月17日 22:46:03 +0000 (00:46 +0200)
2021年1月17日 22:46:03 +0000 (00:46 +0200)
commit 04eb75e783ba49ca2e0e75088d6590b64be8ed4d
pageinspect: Fix relcache leak in gist_page_items().

The gist_page_items() function opened the index relation on first call and
closed it on the last call. But there's no guarantee that the function is
run to completion, leading to a relcache leak and warning at the end of
the transaction. To fix, refactor the function to return all the rows in
one call, as a tuplestore.

Reported-by: Tom Lane
Discussion: https://www.postgresql.org/message-id/234863.1610916631%40sss.pgh.pa.us
contrib/pageinspect/gistfuncs.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /