Re: protect pg_stat_statements_info() for being used without the library loaded

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Jaime Casanova <jcasanov@systemguards.com.ec>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-01-28T06:42:56Z
Lists: pgsql-hackers
On Thu, Jan 28, 2021 at 08:49:54AM +0800, Julien Rouhaud wrote:
> Good catch, and patch looks good to me.

This crashes the server, cash.  Looking at all the other modules in
the tree, I am not seeing any other hole.  This is new as of 9fbc3f3,
and I will apply it on HEAD.
--
Michael

Commits

  1. Fix crash of pg_stat_statements_info() without library loaded