Tom Lane 2 years ago
parent 7e2561e1a2
commit 56dcd71dec
  1. 18
      src/backend/utils/cache/catcache.c

@ -1690,8 +1690,8 @@ SearchCatCacheList(CatCache *cache,
continue; /* not same tuple */
/*
* Found a match, but can't use it if it belongs to another
* list already
* Found a match, but can't use it if it belongs to
* another list already
*/
if (ct->c_list)
continue;
@ -1709,13 +1709,13 @@ SearchCatCacheList(CatCache *cache,
if (ct == NULL)
{
/*
* Release refcounts on any items we already had. We dare
* not try to free them if they're now unreferenced, since
* an error while doing that would result in the PG_CATCH
* below doing extra refcount decrements. Besides, we'll
* likely re-adopt those items in the next iteration, so
* it's not worth complicating matters to try to get rid
* of them.
* Release refcounts on any items we already had. We
* dare not try to free them if they're now
* unreferenced, since an error while doing that would
* result in the PG_CATCH below doing extra refcount
* decrements. Besides, we'll likely re-adopt those
* items in the next iteration, so it's not worth
* complicating matters to try to get rid of them.
*/
foreach(ctlist_item, ctlist)
{

Loading…
Cancel
Save