Few extensions, pg_stat_statements not available - Mailing list pgsql-admin

From Mauricio Fernandez
Subject Few extensions, pg_stat_statements not available
Date
Msg-id CAMdfv4UcNc7pY5RL-BCq+9LHJA-7h1L6T1AGQRHh6Yy3PGUshg@mail.gmail.com
Whole thread Raw
Responses Re: Few extensions, pg_stat_statements not available
Re: Few extensions, pg_stat_statements not available
List pgsql-admin
Hi community

I've been investigating about postgresql monitoring tools and I've installed a couple of extensions: system_stats and pg_stat_monitor.Then I tried to enable pg_stat_statements and postgresql could no restart because lack of extension file

FATAL:  could not access file "pg_stat_statements": No such file or directory

I don't know why there are so few extensions available

postgres=# select * from pg_available_extensions;
      name       | default_version | installed_version | comment                
-----------------+-----------------+-------------------+-------------------------------------------------------------------------
 plpgsql         | 1.0             | 1.0               | PL/pgSQL procedural language
 system_stats    | 3.0             | 3.0               | EnterpriseDB system statistics for PostgreSQL
 repmgr          | 5.5             |                   | Replication manager for PostgreSQL
 pg_stat_monitor | 2.1             |                   | The pg_stat_monitor is a PostgreSQL Query Performance Monitoring tool.....
(4 rows)


[postgres@pgsql01 data]$ ls -l /usr/pgsql-17/share/extension/
total 256
-rw-r--r--. 1 root root  9636 Feb 24 08:25 pg_stat_monitor--1.0--2.0.sql
-rw-r--r--. 1 root root 12017 Feb 24 08:25 pg_stat_monitor--2.0--2.1.sql
-rw-r--r--. 1 root root 11092 Feb 24 08:25 pg_stat_monitor--2.0.sql
-rw-r--r--. 1 root root   377 Feb 24 08:25 pg_stat_monitor.control
-rw-r--r--. 1 root root   658 Feb 18 07:17 plpgsql--1.0.sql
-rw-r--r--. 1 root root   193 Feb 18 07:17 plpgsql.control
-rw-r--r--. 1 root root   136 Nov 22 11:34 repmgr--4.0--4.1.sql
-rw-r--r--. 1 root root  5421 Nov 22 11:34 repmgr--4.0.sql
-rw-r--r--. 1 root root   840 Nov 22 11:34 repmgr--4.1--4.2.sql
-rw-r--r--. 1 root root  5420 Nov 22 11:34 repmgr--4.1.sql
-rw-r--r--. 1 root root   501 Nov 22 11:34 repmgr--4.2--4.3.sql
-rw-r--r--. 1 root root  6125 Nov 22 11:34 repmgr--4.2.sql
-rw-r--r--. 1 root root   486 Nov 22 11:34 repmgr--4.3--4.4.sql
-rw-r--r--. 1 root root  6516 Nov 22 11:34 repmgr--4.3.sql
-rw-r--r--. 1 root root   208 Nov 22 11:34 repmgr--4.4--5.0.sql
-rw-r--r--. 1 root root  6766 Nov 22 11:34 repmgr--4.4.sql
-rw-r--r--. 1 root root   225 Nov 22 11:34 repmgr--5.0--5.1.sql
-rw-r--r--. 1 root root  6513 Nov 22 11:34 repmgr--5.0.sql
-rw-r--r--. 1 root root   344 Nov 22 11:34 repmgr--5.1--5.2.sql
-rw-r--r--. 1 root root  6513 Nov 22 11:34 repmgr--5.1.sql
-rw-r--r--. 1 root root  1910 Nov 22 11:34 repmgr--5.2--5.3.sql
-rw-r--r--. 1 root root  5930 Nov 22 11:34 repmgr--5.2.sql
-rw-r--r--. 1 root root   135 Nov 22 11:34 repmgr--5.3--5.4.sql
-rw-r--r--. 1 root root  6014 Nov 22 11:34 repmgr--5.3.sql
-rw-r--r--. 1 root root   135 Nov 22 11:34 repmgr--5.4--5.5.sql
-rw-r--r--. 1 root root  6014 Nov 22 11:34 repmgr--5.4.sql
-rw-r--r--. 1 root root  6013 Nov 22 11:34 repmgr--5.5.sql
-rw-r--r--. 1 root root   162 Nov 22 11:34 repmgr.control
-rw-r--r--. 1 root root  7685 Nov 22 11:34 repmgr--unpackaged--4.0.sql
-rw-r--r--. 1 root root  8781 Nov 22 11:34 repmgr--unpackaged--5.1.sql
-rw-r--r--. 1 root root  8005 Nov 22 11:34 repmgr--unpackaged--5.2.sql
-rw-r--r--. 1 root root  8089 Nov 22 11:34 repmgr--unpackaged--5.3.sql
-rw-r--r--. 1 root root    27 Mar 20 16:56 system_stats--1.0--2.0.sql
-rw-r--r--. 1 root root  6113 Mar 20 16:56 system_stats--1.0.sql
-rw-r--r--. 1 root root    27 Mar 20 16:56 system_stats--2.0--3.0.sql
-rw-r--r--. 1 root root  6113 Mar 20 16:56 system_stats--2.0.sql
-rw-r--r--. 1 root root  6113 Mar 20 16:56 system_stats--3.0.sql
-rw-r--r--. 1 root root   167 Mar 20 16:56 system_stats.control
-rw-r--r--. 1 root root   373 Mar 20 16:56 uninstall_system_stats.sql
[postgres@pgsql01 data]$

I would appreciate any tips or guidance 

kind regards

Mauricio Fernández

pgsql-admin by date:

Previous
From: Rui DeSousa
Date:
Subject: Re: pg_stat_replication write_lsn documentation ambiguity?
Next
From: Ron Johnson
Date:
Subject: Re: Few extensions, pg_stat_statements not available