Re: [HACKERS] Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.

2016-11-27 Thread Michael Paquier
On Sat, Nov 26, 2016 at 8:57 AM, Tom Lane wrote: > Could you show us a test case that provokes the warning you see? Nothing to worry about IMO. Looking at the patch, there is no pg_class_relation declared, so this would not even compile... -- Michael -- Sent via pgsql-hackers mailing list (pg

Re: [HACKERS] Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.

2016-11-25 Thread Tom Lane
Ming Li writes: > In some cases the meta tuple in pg_class for a specific relation is > invalid, which will cause relcache leak, and then report warning: > WARNING: relcache reference leak: relation "pg_class" not closed. > The diff file in the attachment can fix this problem. I'm confused. Rel

[HACKERS] Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.

2016-11-25 Thread Ming Li
Hi all, In some cases the meta tuple in pg_class for a specific relation is invalid, which will cause relcache leak, and then report warning: WARNING: relcache reference leak: relation "pg_class" not closed. The diff file in the attachment can fix this problem. diff --git a/src/backend/utils/cach