chemtech
@chemtech
Линуксойд, DevOps

Как исправить extension “pg_buffercache” already exists and relation “pg_buffercache” does not exist?

Когда я пытаюсь создать расширение pg_buffercahe, используя следующую команду:

➤ psql://postgres@postgresql-95-2:5432/postgres

CREATE EXTENSION pg_buffercache;
... он возвращает ошибку:

ERROR: extension "pg_buffercache" already exists

Если я попытаюсь извлечь информацию из pg_buffercahe, используя следующую команду

➤ psql://postgres@postgresql-95-2:5432/postgres

select count(*) from pg_buffercache where not isdirty;
... Я получаю сообщение об ошибке:

ERROR: relation "pg_buffercache" does not exist
В моей системе установлены следующие пакеты:

yum list postgresql95*
Installed Packages
postgresql95.x86_64 9.5.10-1PGDG.rhel7
postgresql95-contrib.x86_64 9.5.10-1PGDG.rhel7
postgresql95-libs.x86_64 9.5.10-1PGDG.rhel7
postgresql95-server.x86_64 9.5.10-1PGDG.rhel7
How can I fix this issue?

➤ psql://postgres@postgresql-95-2:5432/postgres

# \dx
List of installed extensions
Name | Version | Schema | Description
--------------------+---------+------------+-----------------------------------------------------------
pg_buffercache | 1.1 | public | examine the shared buffer cache
pg_stat_statements | 1.3 | public | track execution statistics of all SQL statements executed
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(3 rows)
  • Вопрос задан
  • 1008 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы