View Issue Details

IDProjectCategoryView StatusLast Update
0000783Pgpool-IIBugpublic2023-02-10 09:40
ReporterCidy Long Assigned Topengbo  
PriorityurgentSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOSCentos StreamOS Version9
Product Version4.4.1 
Summary0000783: "CREATE EXTENSION pgpool_recovery" failed.
DescriptionRefer to [8.2.6.8. Pgpool-II Online Recovery Configurations] of pgpool 4.4.2 documentation.

In order to use the online recovery functionality, the functions of pgpool_recovery, pgpool_remote_start, pgpool_switch_xlog are required, so we need to install pgpool_recovery on template1 of PostgreSQL server server1.

on my postgresql master server. run:

[server1]# su - postgres
[server1]$ psql template1 -c "CREATE EXTENSION pgpool_recovery" -p 5433

failed. with error
Steps To ReproduceFollow instruction of pgpool-II documentation 4.4.2 until [8.2.6.8. Pgpool-II Online Recovery Configurations]

In order to use the online recovery functionality, the functions of pgpool_recovery, pgpool_remote_start, pgpool_switch_xlog are required, so we need to install pgpool_recovery on template1 of PostgreSQL server server1.

[server1]# su - postgres
[server1]$ psql template1 -c "CREATE EXTENSION pgpool_recovery" -p 5433

response:
ERROR: extension "pgpool_recovery" is not available
DETAIL: Could not open extension control file "/usr/share/pgsql/extension/pgpool_recovery.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL is running.

Try to find file [pgpool_recovery.control] by root user;
response: /usr/pgsql-15/share/extension/pgpool_recovery.control

Try to make a symbol link by root user
ln -s /usr/pgsql-15/share/extension/pgpool_recovery.control /usr/share/pgsql/extension/pgpool_recovery.control

run: [
[server1]# su - postgres
[server1]$ psql template1 -c "CREATE EXTENSION pgpool_recovery" -p 5433
] again.

response: [
ERROR: extension "pgpool_recovery" has no installation script nor update path for version "1.4"
]
Additional InformationPlease advise a direction.
TagsNo tags attached.

Activities

pengbo

2023-02-09 22:49

developer   ~0004232

Last edited: 2023-02-10 09:40

To run "CREATE EXTENSION pgpool_recovery" the srcipt "/usr/pgsql-15/share/extension/pgpool_recovery--1.4.sql" is required.

Because Pgpool-II-pg15* pacakges are built for PostgreSQL 15 which is installed in /usr/pgsql-15, the scripts are installed under "/usr/pgsql-15/share/extension/".

To install the extensions to other path, the best way is to build the source code to install pgpool extensions.

https://www.pgpool.net/docs/latest/en/html/install-pgpool-recovery.html

Issue History

Date Modified Username Field Change
2023-02-03 13:58 Cidy Long New Issue
2023-02-09 22:49 pengbo Note Added: 0004232
2023-02-09 22:50 pengbo Assigned To => pengbo
2023-02-09 22:50 pengbo Status new => feedback
2023-02-10 00:35 pengbo Note Edited: 0004232
2023-02-10 09:40 pengbo Note Edited: 0004232