PG17 version getting installed by default with every package installation - Mailing list pgsql-hackers

From Rambabu V
Subject PG17 version getting installed by default with every package installation
Date
Msg-id CADtiZxo4dcePO9MQkn_6ajKkksLNTA6jLK5WoxV3RLuewV=rag@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi Team,

i have one more question : 

with every version of package installation , PG 17 version is getting by default installed, is it a hard dependency or bug?

[root@db1 ~]# dnf install -y postgresql16-server postgresql16-contrib -y
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 0:05:28 ago on Sun Nov 16 04:56:13 2025.
Dependencies resolved.
====================================================================================================================================================================================================================
 Package                                              Architecture                           Version                                              Repository                                                   Size
====================================================================================================================================================================================================================
Installing:
 postgresql16-contrib                                 x86_64                                 16.11-1PGDG.rhel10                                   pgdg16                                                      730 k
 postgresql16-server                                  x86_64                                 16.11-1PGDG.rhel10                                   pgdg16                                                      6.8 M
Installing dependencies:
 libicu                                               x86_64                                 74.2-5.el10_0                                        rhel-10-baseos-rhui-rpms                                     10 M
 libxslt                                              x86_64                                 1.1.39-8.el10_0                                      rhel-10-appstream-rhui-rpms                                 190 k
 postgresql16                                         x86_64                                 16.11-1PGDG.rhel10                                   pgdg16                                                      1.8 M
 postgresql16-libs                                    x86_64                                 16.11-1PGDG.rhel10                                   pgdg16                                                      339 k
 postgresql17                                         x86_64                                 17.7-1PGDG.rhel10                                    pgdg17                                                      1.9 M
 postgresql17-libs                                    x86_64                                 17.7-1PGDG.rhel10                                    pgdg17                                                      346 k
Installing weak dependencies:
 postgresql17-server                                  x86_64                                 17.7-1PGDG.rhel10                                    pgdg17                                                      7.0 M

Transaction Summary
====================================================================================================================================================================================================================
Install  9 Packages

Total download size: 30 M
Installed size: 120 M
Downloading Packages:
(1/9): postgresql17-libs-17.7-1PGDG.rhel10.x86_64.rpm                                                                                                                                11 MB/s | 346 kB     00:00
(2/9): postgresql17-17.7-1PGDG.rhel10.x86_64.rpm                                                                                                                                     42 MB/s | 1.9 MB     00:00
(3/9): postgresql16-16.11-1PGDG.rhel10.x86_64.rpm                                                                                                                                    56 MB/s | 1.8 MB     00:00
(4/9): postgresql16-contrib-16.11-1PGDG.rhel10.x86_64.rpm                                                                                                                            25 MB/s | 730 kB     00:00
(5/9): postgresql16-libs-16.11-1PGDG.rhel10.x86_64.rpm                                                                                                                               20 MB/s | 339 kB     00:00
(6/9): libxslt-1.1.39-8.el10_0.x86_64.rpm                                                                                                                                           6.6 MB/s | 190 kB     00:00
(7/9): libicu-74.2-5.el10_0.x86_64.rpm                                                                                                                                              104 MB/s |  10 MB     00:00
(8/9): postgresql17-server-17.7-1PGDG.rhel10.x86_64.rpm                                                                                                                              28 MB/s | 7.0 MB     00:00
(9/9): postgresql16-server-16.11-1PGDG.rhel10.x86_64.rpm                                                                                                                             33 MB/s | 6.8 MB     00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                92 MB/s |  30 MB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                            1/1
  Installing       : postgresql17-libs-17.7-1PGDG.rhel10.x86_64                                                                                                                                                 1/9
  Running scriptlet: postgresql17-libs-17.7-1PGDG.rhel10.x86_64                                                                                                                                                 1/9
  Installing       : libicu-74.2-5.el10_0.x86_64                                                                                                                                                                2/9
  Installing       : postgresql16-libs-16.11-1PGDG.rhel10.x86_64                                                                                                                                                3/9
  Running scriptlet: postgresql16-libs-16.11-1PGDG.rhel10.x86_64                                                                                                                                                3/9
  Installing       : postgresql16-16.11-1PGDG.rhel10.x86_64                                                                                                                                                     4/9
  Running scriptlet: postgresql16-16.11-1PGDG.rhel10.x86_64                                                                                                                                                     4/9
  Installing       : postgresql17-17.7-1PGDG.rhel10.x86_64                                                                                                                                                      5/9
  Running scriptlet: postgresql17-17.7-1PGDG.rhel10.x86_64                                                                                                                                                      5/9
  Running scriptlet: postgresql17-server-17.7-1PGDG.rhel10.x86_64                                                                                                                                               6/9
  Installing       : postgresql17-server-17.7-1PGDG.rhel10.x86_64                                                                                                                                               6/9
  Running scriptlet: postgresql17-server-17.7-1PGDG.rhel10.x86_64                                                                                                                                               6/9
  Running scriptlet: postgresql16-server-16.11-1PGDG.rhel10.x86_64                                                                                                                                              7/9
  Installing       : postgresql16-server-16.11-1PGDG.rhel10.x86_64                                                                                                                                              7/9
  Running scriptlet: postgresql16-server-16.11-1PGDG.rhel10.x86_64                                                                                                                                              7/9
  Installing       : libxslt-1.1.39-8.el10_0.x86_64                                                                                                                                                             8/9
  Installing       : postgresql16-contrib-16.11-1PGDG.rhel10.x86_64                                                                                                                                             9/9
  Running scriptlet: postgresql16-contrib-16.11-1PGDG.rhel10.x86_64                                                                                                                                             9/9
Installed products updated.

Installed:
  libicu-74.2-5.el10_0.x86_64                          libxslt-1.1.39-8.el10_0.x86_64                        postgresql16-16.11-1PGDG.rhel10.x86_64         postgresql16-contrib-16.11-1PGDG.rhel10.x86_64
  postgresql16-libs-16.11-1PGDG.rhel10.x86_64          postgresql16-server-16.11-1PGDG.rhel10.x86_64         postgresql17-17.7-1PGDG.rhel10.x86_64          postgresql17-libs-17.7-1PGDG.rhel10.x86_64
  postgresql17-server-17.7-1PGDG.rhel10.x86_64

Complete!
[root@db1 ~]# rpm -qa|grep postgres
postgresql17-libs-17.7-1PGDG.rhel10.x86_64
postgresql16-libs-16.11-1PGDG.rhel10.x86_64
postgresql16-16.11-1PGDG.rhel10.x86_64
postgresql17-17.7-1PGDG.rhel10.x86_64
postgresql17-server-17.7-1PGDG.rhel10.x86_64
postgresql16-server-16.11-1PGDG.rhel10.x86_64
postgresql16-contrib-16.11-1PGDG.rhel10.x86_64

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Next
From: Heikki Linnakangas
Date:
Subject: Use strtoi64() in pgbench, replacing its open-coded implementation