[patch] Potential relcache leak in get_object_address_attribute - Mailing list pgsql-hackers

From Marti Raudsepp
Subject [patch] Potential relcache leak in get_object_address_attribute
Date
Msg-id CABRT9RDdFVc05vhQCZ7QR_B-_cbQZOGv=oehepuYAt_LGrV4PA@mail.gmail.com
Whole thread Raw
Responses Re: [patch] Potential relcache leak in get_object_address_attribute  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hi list,

It looks like the get_object_address_attribute() function has a
potential relcache leak. When missing_ok=true, the relation is found
but attribute is not, then the relation isn't closed, nor is it
returned to the caller.

I couldn't figure out any ways to trigger this, but it's best to fix anyway.

Regards,
Marti

Attachment

pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: array_length(anyarray)
Next
From: Tom Lane
Date:
Subject: Re: Heavily modified big table bloat even in auto vacuum is running