View Issue Details

IDProjectCategoryView StatusLast Update
0000784Pgpool-IIBugpublic2023-02-10 09:42
ReporterCidy Long Assigned Topengbo  
PriorityurgentSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSCentos StreamOS Version9
Product Version4.4.1 
Summary0000784: How to make pgpool-II extension work with postgresql-contrib together?
DescriptionWhen we tried to use pgpool-II features with our existing project, we find there is conflict between [built-in postgresql] and [specific postgresql] for example postgresql15-server. We found there is no way to put postgresql-contrib (built in extension) and pgpool-II extension together.

They are staying two separated locations such as: /usr/share/pgsql/extension and /usr/pgsql-15/share/extension
Steps To ReproduceFollow pgpool-II documentation (https://www.pgpool.net/docs/44/en/html/example-cluster.html)
[8.2.3. Installation]

Install PostgreSQL from PostgreSQL YUM repository.

[all servers]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[all servers]# yum install -y postgresql15-server
  
Since Pgpool-II related packages are also included in PostgreSQL YUM repository, add the "exclude" settings to /etc/yum.repos.d/pgdg-redhat-all.repo so that Pgpool-II is not installed from PostgreSQL YUM repository.

[all servers]# vi /etc/yum.repos.d/pgdg-redhat-all.repo
  
The following is a setting example of /etc/yum.repos.d/pgdg-redhat-all.repo.

[pgdg-common]
...
exclude=pgpool*

[pgdg15]
...
exclude=pgpool*

[pgdg14]
...
exclude=pgpool*

[pgdg13]
...
exclude=pgpool*

[pgdg12]
...
exclude=pgpool*

[pgdg11]
...
exclude=pgpool*

[pgdg10]
...
exclude=pgpool*
  
Install Pgpool-II from Pgpool-II YUM repository.

[all servers]# yum install -y https://www.pgpool.net/yum/rpms/4.4/redhat/rhel-7-x86_64/pgpool-II-release-4.4-1.noarch.rpm
[all servers]# yum install -y pgpool-II-pg15-*

Up to here, we found pgpool-II related extensions (pgpool-recovery & pgpool_adm etc.) were installed into:
/usr/pgsql-15/share/extension

Then install postgresql-contrib by run [
dnf install postgresql-contrib
]

But we found all extensions were installed into:
/usr/share/pgsql/extension

Problems started.
if we start postgresql service with:
init database by: [/usr/pgsql-15/bin/initdb -D $PGDATA] as document specified.
start service by: [systemctl start postgresql15.service]
when follow the procedure, postgresql con't found my postgresql-contrib extension

if we start postgresql service with:
init database by: [/usr/bin/initdb -D $PGDATA] as document specified.
start service by: [systemctl start postgresql.service]
when follow the procedure, postgresql con't found my pgpool-II extension

Please advise a way to make pgpool-II and postgresql-contril wort together?
Additional InformationThis bug is a update and forward work for bug 783
TagsNo tags attached.

Activities

pengbo

2023-02-10 09:42

developer   ~0004233

The best way is to build the source code to install Pgpool-II extensions.

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

Issue History

Date Modified Username Field Change
2023-02-07 07:55 Cidy Long New Issue
2023-02-10 00:21 pengbo Assigned To => pengbo
2023-02-10 00:21 pengbo Status new => assigned
2023-02-10 09:42 pengbo Note Added: 0004233