Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.

From: Ming Li <mli(at)apache(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.
Date: 2016-11-25 09:36:56
Message-ID: CA+F1uf=aAMqBaZvzXcP=wLehsfoY5Wn5Wi=-eYeiUcBHQy9H8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pg_class_relcache_leak.diff text/plain 527 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-11-25 10:49:36 Re: Declarative partitioning - another take
Previous Message Amit Langote 2016-11-25 09:16:51 Re: Declarative partitioning - another take