RHEL8にPostgreSQLクライアントをバージョン指定で導入する

PostgreSQLクライアントとして、今回はversion 12を導入したい。

`dnf module install [Name]:[Stream]/[Profile]`という形で指定ができる。

```txt:
[root@power-rhel8 ~]# dnf module list postgresql
Updating Subscription Management repositories.
Red Hat Ansible Engine 2 for RHEL 8 ppc64le (RPMs)                                                                                        122 kB/s | 4.0 kB     00:00
Red Hat Enterprise Linux 8 for Power, little endian - AppStream (RPMs)
Name                                Stream                          Profiles                                   Summary
postgresql                          9.6                             client, server [d]                         PostgreSQL server and client module
postgresql                          10 [d]                          client, server [d]                         PostgreSQL server and client module
postgresql                          12                              client, server [d]                         PostgreSQL server and client module
postgresql                          13                              client, server [d]                         PostgreSQL server and client module

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled


[root@power-rhel8 ~]# dnf module install postgresql:12/client
Updating Subscription Management repositories.
Red Hat Ansible Engine 2 for RHEL 8 ppc64le (RPMs)                                                                                        115 kB/s | 4.0 kB     00:00
Dependencies resolved.
==========================================================================================================================================================================
 Package                      Architecture              Version                                                 Repository                                           Size
==========================================================================================================================================================================
Installing group/module packages:
 postgresql                   ppc64le                   12.12-1.module+el8.6.0+16796+0abe6678                   rhel-8-for-ppc64le-appstream-rpms                   1.6 M
Installing dependencies:
 libpq                        ppc64le                   13.5-1.el8                                              rhel-8-for-ppc64le-appstream-rpms                   214 k
Installing module profiles:
 postgresql/client
Enabling module streams:
 postgresql                                             12

Transaction Summary
==========================================================================================================================================================================
Install  2 Packages

Total download size: 1.8 M
Installed size: 7.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libpq-13.5-1.el8.ppc64le.rpm                                                                                                       3.2 MB/s | 214 kB     00:00
(2/2): postgresql-12.12-1.module+el8.6.0+16796+0abe6678.ppc64le.rpm                                                                        14 MB/s | 1.6 MB     00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                      16 MB/s | 1.8 MB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                  1/1
  Installing       : libpq-13.5-1.el8.ppc64le                                                                                                                         1/2
  Installing       : postgresql-12.12-1.module+el8.6.0+16796+0abe6678.ppc64le                                                                                         2/2
  Running scriptlet: postgresql-12.12-1.module+el8.6.0+16796+0abe6678.ppc64le                                                                                         2/2
  Verifying        : libpq-13.5-1.el8.ppc64le                                                                                                                         1/2
  Verifying        : postgresql-12.12-1.module+el8.6.0+16796+0abe6678.ppc64le                                                                                         2/2
Installed products updated.

Installed:
  libpq-13.5-1.el8.ppc64le                                            postgresql-12.12-1.module+el8.6.0+16796+0abe6678.ppc64le

Complete!


[root@power-rhel8 ~]# psql --version
psql (PostgreSQL) 12.12
```