Fixed pg_class refcache leak when the meta tuple in pg_class in invalid. - Mailing list pgsql-hackers

From Ming Li
Subject Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.
Date
Msg-id CA+F1uf=aAMqBaZvzXcP=wLehsfoY5Wn5Wi=-eYeiUcBHQy9H8A@mail.gmail.com
Whole thread Raw
Responses Re: Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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.


Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: confusing checkpoint_flush_after / bgwriter_flush_after
Next
From: Tomas Vondra
Date:
Subject: Re: confusing checkpoint_flush_after / bgwriter_flush_after