Hello openSUSE Community,
I am testing PostgreSQL 15 installation on openSUSE Leap 16.0 (x86_64) using the official PostgreSQL PGDG repository.
When attempting to install postgresql15-server , Zypper unexpectedly selects PostgreSQL 18-based Babelfish packages.
1. Installation dry run
zypper install --dry-run --no-recommends --from pgdg15 postgresql15-server
Output:
The following 6 NEW packages are going to be installed:
babelfish_postgresql18
babelfish_postgresql18-libs
babelfish_postgresql18-server
postgresql15
postgresql15-libs
postgresql15-server
2. PostgreSQL 15 RPM dependencies
Package: postgresql15-server-15.19-420001PGDG.lp16.0.x86_64
Requires:
group(postgres)
user(postgres)
/usr/sbin/groupadd
/usr/sbin/useradd
3. Available providers
zypper what-provides 'user(postgres)'
zypper what-provides 'group(postgres)'
Both commands return:
babelfish_postgresql18-server
postgresql-server
postgresql17-server
postgresql18-server
PostgreSQL 15 is not listed.
4. PostgreSQL 15 already has a preinstall script
rpm -qp --scripts postgresql15-server-15.19-420001PGDG.lp16.0.x86_64.rpm
The %pre script contains:
# This is replaced by sysusers.d in recent OSes:
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
However, rpm -qp --provides confirms that postgresql15-server does not provide user(postgres) or group(postgres) .
5. Additional checks
- No
system-user-postgrespackage was found. - The openSUSE Leap 16.0 repository provides unversioned
postgresql-serverpackages at versions 17 and 18. - The same unexpected cross-version dependency behavior was observed when using our internal repository mirror.
Questions:
- Is this a known PostgreSQL 15 RPM packaging issue on Leap 16.0?
- Why does
postgresql15-serverrequireuser(postgres)andgroup(postgres)without providing these capabilities, despite having a preinstall script to create the account? - Is there an officially supported package or workaround to satisfy these dependencies without installing PostgreSQL 17, PostgreSQL 18, or Babelfish?
- Should this be reported to the PGDG RPM maintainers or the openSUSE packaging team?
Our requirement is to install PostgreSQL 15 only , without pulling another PostgreSQL major version.
Any guidance or an officially supported solution would be appreciated.
Thank you.