[PATCH] Avoid open and lock the table Extendend Statistics (src/backend/commands/statscmds.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Avoid open and lock the table Extendend Statistics (src/backend/commands/statscmds.c)
Date: 2022-02-13 21:21:38
Message-ID: CAEudQArkb3-nvzsNetQWVcK4P+JLW_ZZTjR1iChKfJhK_p9--w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Commit
https://github.com/postgres/postgres/commit/6d554e3fcd6fb8be2dbcbd3521e2947ed7a552cb

has fixed the bug, but still has room for improvement.

Why open and lock the table Extended Statistics if it is not the owner.
Check and return to avoid this.

trivial patch attached.

regards,
Ranier Vilela

Attachment Content-Type Size
avoid_open_and_lock_table_if_not_owner.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-02-13 21:23:16 Re: Adding CI to our tree
Previous Message Tom Lane 2022-02-13 21:05:38 Re: Mark all GUC variable as PGDLLIMPORT