Category Archives: PostgreSQL

Install PostgreSQL Using Source Code

How to Install PostgreSQL 13 Using Source Code on Linux 7

Table of Contents
___________________________________________________________________________________________________

1. Install required packages
2. Download the source code tar file
3. Extract tar file
4. configure –help
5. Create postgres user and required directories
6. Configure postgreSQL
7. Build postgreSQL using make command
8. Install postgreSQL using make install command
9. Build contrib module using make command (optional)
10. Install contrib module using make install command (optional)
11. Validation
12. Change binary owner to postgres
13. Initialize postgreSQL data directory using postgres user
14. Validate the postgreSQL data directory
15. Start postgreSQL database as postgres user
16. Setting the postgres User Environment Variables
17. Create postgreSQL DB and test the installation

___________________________________________________________________________________________________


1. Install required packages

[root@pcs1 ~]# dhclient
[root@pcs1 ~]# yum install readline-devel
Loaded plugins: langpacks, ulninfo
ol7_UEKR4                                                                                                                                                                                                             | 3.0 kB  00:00:00
ol7_latest                                                                                                                                                                                                            | 3.6 kB  00:00:00
(1/4): ol7_UEKR4/x86_64/updateinfo                                                                                                                                                                                    | 107 kB  00:00:00
(2/4): ol7_latest/x86_64/updateinfo                                                                                                                                                                                   | 3.4 MB  00:00:03
(3/4): ol7_UEKR4/x86_64/primary_db                                                                                                                                                                                    |  18 MB  00:00:11
(4/4): ol7_latest/x86_64/primary_db                                                                                                                                                                                   |  37 MB  00:00:12
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed
--> Processing Dependency: readline = 6.2-11.el7 for package: readline-devel-6.2-11.el7.x86_64
--> Processing Dependency: ncurses-devel for package: readline-devel-6.2-11.el7.x86_64
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed
---> Package readline.x86_64 0:6.2-10.el7 will be updated
---> Package readline.x86_64 0:6.2-11.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                   Arch                                              Version                                                             Repository                                             Size
=============================================================================================================================================================================================================================================
Installing:
 readline-devel                                            x86_64                                            6.2-11.el7                                                          ol7_latest                                            138 k
Installing for dependencies:
 ncurses-devel                                             x86_64                                            5.9-14.20130511.el7_4                                               ol7_latest                                            712 k
Updating for dependencies:
 readline                                                  x86_64                                            6.2-11.el7                                                          ol7_latest                                            193 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  1 Package  (+1 Dependent package)
Upgrade             ( 1 Dependent package)

Total download size: 1.0 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for ol7_latest
(1/3): readline-6.2-11.el7.x86_64.rpm                                                                                                                                                                                 | 193 kB  00:00:00
(2/3): readline-devel-6.2-11.el7.x86_64.rpm                                                                                                                                                                           | 138 kB  00:00:00
(3/3): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm                                                                                                                                                                 | 712 kB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        1.0 MB/s | 1.0 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64                                                                                                                                                                                1/4
  Updating   : readline-6.2-11.el7.x86_64                                                                                                                                                                                                2/4
  Installing : readline-devel-6.2-11.el7.x86_64                                                                                                                                                                                          3/4
  Cleanup    : readline-6.2-10.el7.x86_64                                                                                                                                                                                                4/4
  Verifying  : readline-devel-6.2-11.el7.x86_64                                                                                                                                                                                          1/4
  Verifying  : readline-6.2-11.el7.x86_64                                                                                                                                                                                                2/4
  Verifying  : ncurses-devel-5.9-14.20130511.el7_4.x86_64                                                                                                                                                                                3/4
  Verifying  : readline-6.2-10.el7.x86_64                                                                                                                                                                                                4/4

Installed:
  readline-devel.x86_64 0:6.2-11.el7

Dependency Installed:
  ncurses-devel.x86_64 0:5.9-14.20130511.el7_4

Dependency Updated:
  readline.x86_64 0:6.2-11.el7

Complete!
[root@pcs1 ~]#

[root@pcs1 ~]# yum install -y zlib-devel
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.x86_64 0:1.2.7-19.el7_9 will be installed
--> Processing Dependency: zlib = 1.2.7-19.el7_9 for package: zlib-devel-1.2.7-19.el7_9.x86_64
--> Running transaction check
---> Package zlib.x86_64 0:1.2.7-17.el7 will be updated
---> Package zlib.x86_64 0:1.2.7-19.el7_9 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                  Arch                                                 Version                                                        Repository                                                Size
=============================================================================================================================================================================================================================================
Installing:
 zlib-devel                                               x86_64                                               1.2.7-19.el7_9                                                 ol7_latest                                                50 k
Updating for dependencies:
 zlib                                                     x86_64                                               1.2.7-19.el7_9                                                 ol7_latest                                                89 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  1 Package
Upgrade             ( 1 Dependent package)

Total download size: 139 k
Downloading packages:
No Presto metadata available for ol7_latest
(1/2): zlib-devel-1.2.7-19.el7_9.x86_64.rpm                                                                                                                                                                           |  50 kB  00:00:00
(2/2): zlib-1.2.7-19.el7_9.x86_64.rpm                                                                                                                                                                                 |  89 kB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        159 kB/s | 139 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : zlib-1.2.7-19.el7_9.x86_64                                                                                                                                                                                                1/3
  Installing : zlib-devel-1.2.7-19.el7_9.x86_64                                                                                                                                                                                          2/3
  Cleanup    : zlib-1.2.7-17.el7.x86_64                                                                                                                                                                                                  3/3
  Verifying  : zlib-devel-1.2.7-19.el7_9.x86_64                                                                                                                                                                                          1/3
  Verifying  : zlib-1.2.7-19.el7_9.x86_64                                                                                                                                                                                                2/3
  Verifying  : zlib-1.2.7-17.el7.x86_64                                                                                                                                                                                                  3/3

Installed:
  zlib-devel.x86_64 0:1.2.7-19.el7_9

Dependency Updated:
  zlib.x86_64 0:1.2.7-19.el7_9

Complete!
[root@pcs1 ~]#
[root@pcs1 ~]#

[root@pcs1 ~]# yum install -y install gcc
Loaded plugins: langpacks, ulninfo
No package install available.
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-28.0.1.el7 will be updated
--> Processing Dependency: gcc = 4.8.5-28.0.1.el7 for package: gcc-gfortran-4.8.5-28.0.1.el7.x86_64
--> Processing Dependency: gcc = 4.8.5-28.0.1.el7 for package: libquadmath-devel-4.8.5-28.0.1.el7.x86_64
--> Processing Dependency: gcc = 4.8.5-28.0.1.el7 for package: gcc-c++-4.8.5-28.0.1.el7.x86_64
---> Package gcc.x86_64 0:4.8.5-44.0.3.el7 will be an update
--> Processing Dependency: cpp = 4.8.5-44.0.3.el7 for package: gcc-4.8.5-44.0.3.el7.x86_64
--> Processing Dependency: libgomp = 4.8.5-44.0.3.el7 for package: gcc-4.8.5-44.0.3.el7.x86_64
--> Processing Dependency: libgcc >= 4.8.5-44.0.3.el7 for package: gcc-4.8.5-44.0.3.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package cpp.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package gcc-c++.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package gcc-c++.x86_64 0:4.8.5-44.0.3.el7 will be an update
--> Processing Dependency: libstdc++ = 4.8.5-44.0.3.el7 for package: gcc-c++-4.8.5-44.0.3.el7.x86_64
--> Processing Dependency: libstdc++-devel = 4.8.5-44.0.3.el7 for package: gcc-c++-4.8.5-44.0.3.el7.x86_64
---> Package gcc-gfortran.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package gcc-gfortran.x86_64 0:4.8.5-44.0.3.el7 will be an update
--> Processing Dependency: libgfortran = 4.8.5-44.0.3.el7 for package: gcc-gfortran-4.8.5-44.0.3.el7.x86_64
--> Processing Dependency: libquadmath = 4.8.5-44.0.3.el7 for package: gcc-gfortran-4.8.5-44.0.3.el7.x86_64
---> Package libgcc.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package libgomp.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package libquadmath-devel.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libquadmath-devel.x86_64 0:4.8.5-44.0.3.el7 will be an update
--> Running transaction check
---> Package libgfortran.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libgfortran.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package libquadmath.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libquadmath.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package libstdc++.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-44.0.3.el7 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-28.0.1.el7 will be updated
---> Package libstdc++-devel.x86_64 0:4.8.5-44.0.3.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                       Arch                                               Version                                                       Repository                                              Size
=============================================================================================================================================================================================================================================
Updating:
 gcc                                                           x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                              16 M
Updating for dependencies:
 cpp                                                           x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             5.9 M
 gcc-c++                                                       x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             7.2 M
 gcc-gfortran                                                  x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             6.7 M
 libgcc                                                        x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             103 k
 libgfortran                                                   x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             301 k
 libgomp                                                       x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             159 k
 libquadmath                                                   x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             191 k
 libquadmath-devel                                             x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                              54 k
 libstdc++                                                     x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             306 k
 libstdc++-devel                                               x86_64                                             4.8.5-44.0.3.el7                                              ol7_latest                                             1.5 M

Transaction Summary
=============================================================================================================================================================================================================================================
Upgrade  1 Package (+10 Dependent packages)

Total download size: 39 M
Downloading packages:
No Presto metadata available for ol7_latest
(1/11): gcc-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                               |  16 MB  00:00:04
(2/11): cpp-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                               | 5.9 MB  00:00:05
(3/11): gcc-c++-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                           | 7.2 MB  00:00:01
(4/11): libgcc-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                            | 103 kB  00:00:00
(5/11): libgfortran-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                       | 301 kB  00:00:00
(6/11): libgomp-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                           | 159 kB  00:00:00
(7/11): libquadmath-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                       | 191 kB  00:00:00
(8/11): libquadmath-devel-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                 |  54 kB  00:00:00
(9/11): libstdc++-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                         | 306 kB  00:00:00
(10/11): gcc-gfortran-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                     | 6.7 MB  00:00:02
(11/11): libstdc++-devel-4.8.5-44.0.3.el7.x86_64.rpm                                                                                                                                                                  | 1.5 MB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        5.0 MB/s |  39 MB  00:00:07
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                           1/22
  Updating   : libquadmath-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                      2/22
  Updating   : libstdc++-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                        3/22
  Updating   : libstdc++-devel-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                  4/22
  Updating   : libgfortran-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                      5/22
  Updating   : cpp-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                              6/22
  Updating   : libgomp-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                          7/22
  Updating   : gcc-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                              8/22
  Updating   : libquadmath-devel-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                9/22
  Updating   : gcc-gfortran-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                    10/22
  Updating   : gcc-c++-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                         11/22
  Cleanup    : gcc-c++-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                         12/22
  Cleanup    : gcc-gfortran-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                    13/22
  Cleanup    : libquadmath-devel-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                               14/22
  Cleanup    : libstdc++-devel-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                 15/22
  Cleanup    : gcc-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                             16/22
  Cleanup    : libgfortran-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                     17/22
  Cleanup    : libstdc++-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                       18/22
  Cleanup    : libgcc-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                          19/22
  Cleanup    : libquadmath-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                     20/22
  Cleanup    : cpp-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                             21/22
  Cleanup    : libgomp-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                         22/22
  Verifying  : gcc-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                              1/22
  Verifying  : libquadmath-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                      2/22
  Verifying  : libstdc++-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                        3/22
  Verifying  : gcc-gfortran-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                     4/22
  Verifying  : libgomp-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                          5/22
  Verifying  : libstdc++-devel-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                  6/22
  Verifying  : libquadmath-devel-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                7/22
  Verifying  : gcc-c++-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                          8/22
  Verifying  : libgfortran-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                      9/22
  Verifying  : libgcc-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                          10/22
  Verifying  : cpp-4.8.5-44.0.3.el7.x86_64                                                                                                                                                                                             11/22
  Verifying  : gcc-gfortran-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                    12/22
  Verifying  : libgomp-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                         13/22
  Verifying  : libgcc-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                          14/22
  Verifying  : libstdc++-devel-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                 15/22
  Verifying  : gcc-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                             16/22
  Verifying  : cpp-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                             17/22
  Verifying  : libquadmath-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                     18/22
  Verifying  : gcc-c++-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                         19/22
  Verifying  : libgfortran-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                     20/22
  Verifying  : libstdc++-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                                       21/22
  Verifying  : libquadmath-devel-4.8.5-28.0.1.el7.x86_64                                                                                                                                                                               22/22

Updated:
  gcc.x86_64 0:4.8.5-44.0.3.el7

Dependency Updated:
  cpp.x86_64 0:4.8.5-44.0.3.el7         gcc-c++.x86_64 0:4.8.5-44.0.3.el7           gcc-gfortran.x86_64 0:4.8.5-44.0.3.el7 libgcc.x86_64 0:4.8.5-44.0.3.el7          libgfortran.x86_64 0:4.8.5-44.0.3.el7 libgomp.x86_64 0:4.8.5-44.0.3.el7
  libquadmath.x86_64 0:4.8.5-44.0.3.el7 libquadmath-devel.x86_64 0:4.8.5-44.0.3.el7 libstdc++.x86_64 0:4.8.5-44.0.3.el7    libstdc++-devel.x86_64 0:4.8.5-44.0.3.el7

Complete!
[root@pcs1 ~]#

[root@pcs1 ~]# yum install -y make
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package make.x86_64 1:3.82-23.el7 will be updated
---> Package make.x86_64 1:3.82-24.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                              Arch                                                   Version                                                        Repository                                                  Size
=============================================================================================================================================================================================================================================
Updating:
 make                                                 x86_64                                                 1:3.82-24.el7                                                  ol7_latest                                                 420 k

Transaction Summary
=============================================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 420 k
Downloading packages:
No Presto metadata available for ol7_latest
make-3.82-24.el7.x86_64.rpm                                                                                                                                                                                           | 420 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:make-3.82-24.el7.x86_64                                                                                                                                                                                                 1/2
  Cleanup    : 1:make-3.82-23.el7.x86_64                                                                                                                                                                                                 2/2
  Verifying  : 1:make-3.82-24.el7.x86_64                                                                                                                                                                                                 1/2
  Verifying  : 1:make-3.82-23.el7.x86_64                                                                                                                                                                                                 2/2

Updated:
  make.x86_64 1:3.82-24.el7

Complete!
[root@pcs1 ~]#


2. Download the source code tar file

wget https://ftp.postgresql.org/pub/source/v13.3/postgresql-13.3.tar.gz

OR Download and then copy to server using winscp.

https://ftp.postgresql.org/pub/source/v13.3/postgresql-13.3.tar.gz


3. Extract tar file

[root@pcs1 ~]# tar -xvf postgresql-13.3.tar.gz
[root@pcs1 ~]#
-rw-r--r--. 1 root root 27610951 May 11  2021 postgresql-13.3.tar.gz
drwxrwxrwx. 6 1107 1107     4096 Dec 23 00:40 postgresql-13.3
[root@pcs1 ~]#



4. configure –help ..choose the options according to your needs.

[root@pcs1 ~]# cd postgresql-13.3/
[root@pcs1 postgresql-13.3]# ./configure --help
`configure' configures PostgreSQL 13.3 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local/pgsql]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/pgsql/bin', `/usr/local/pgsql/lib' etc.  You can specify
an installation prefix other than `/usr/local/pgsql' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-integer-datetimes
                          obsolete option, no longer supported
  --enable-nls[=LANGUAGES]
                          enable Native Language Support
  --disable-rpath         do not embed shared library search path in
                          executables
  --disable-spinlocks     do not use spinlocks
  --disable-atomics       do not use atomic operations
  --enable-debug          build with debugging symbols (-g)
  --enable-profiling      build with profiling enabled
  --enable-coverage       build with coverage testing instrumentation
  --enable-dtrace         build with DTrace support
  --enable-tap-tests      enable TAP tests (requires Perl and IPC::Run)
  --enable-depend         turn on automatic dependency tracking
  --enable-cassert        enable assertion checks (for debugging)
  --disable-thread-safety disable thread-safety in client libraries
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-extra-version=STRING
                          append STRING to version
  --with-template=NAME    override operating system template
  --with-includes=DIRS    look for additional header files in DIRS
  --with-libraries=DIRS   look for additional libraries in DIRS
  --with-libs=DIRS        alternative spelling of --with-libraries
  --with-pgport=PORTNUM   set default port number [5432]
  --with-blocksize=BLOCKSIZE
                          set table block size in kB [8]
  --with-segsize=SEGSIZE  set table segment size in GB [1]
  --with-wal-blocksize=BLOCKSIZE
                          set WAL block size in kB [8]
  --with-CC=CMD           set compiler (deprecated)
  --with-llvm             build with LLVM based JIT support
  --with-icu              build with ICU support
  --with-tcl              build Tcl modules (PL/Tcl)
  --with-tclconfig=DIR    tclConfig.sh is in DIR
  --with-perl             build Perl modules (PL/Perl)
  --with-python           build Python modules (PL/Python)
  --with-gssapi           build with GSSAPI support
  --with-krb-srvnam=NAME  default service principal name in Kerberos (GSSAPI)
                          [postgres]
  --with-pam              build with PAM support
  --with-bsd-auth         build with BSD Authentication support
  --with-ldap             build with LDAP support
  --with-bonjour          build with Bonjour support
  --with-openssl          build with OpenSSL support
  --with-selinux          build with SELinux support
  --with-systemd          build with systemd support
  --without-readline      do not use GNU Readline nor BSD Libedit for editing
  --with-libedit-preferred
                          prefer BSD Libedit over GNU Readline
  --with-uuid=LIB         build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
  --with-ossp-uuid        obsolete spelling of --with-uuid=ossp
  --with-libxml           build with XML support
  --with-libxslt          use XSLT support when building contrib/xml2
  --with-system-tzdata=DIR
                          use system time zone data in DIR
  --without-zlib          do not use Zlib
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
              nonstandard directory 
  LIBS        libraries to pass to the linker, e.g. -l
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
              you have headers in a nonstandard directory 
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  LLVM_CONFIG path to llvm-config command
  CLANG       path to clang compiler to generate bitcode
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
  ICU_LIBS    linker flags for ICU, overriding pkg-config
  XML2_CONFIG path to xml2-config utility
  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
  XML2_LIBS   linker flags for XML2, overriding pkg-config
  LDFLAGS_EX  extra linker flags for linking executables only
  LDFLAGS_SL  extra linker flags for linking shared libraries only
  PERL        Perl program
  PYTHON      Python program
  MSGFMT      msgfmt program for NLS
  TCLSH       Tcl interpreter program (tclsh)

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <pgsql-bugs@lists.postgresql.org>.
PostgreSQL home page: <https://www.postgresql.org/>.
[root@pcs1 postgresql-13.3]#


5. Create postgres user and required directories

[root@pcs1 ~]# useradd -d /home/postgres/ postgres
[root@pcs1 ~]# passwd postgres
Changing password for user postgres.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@pcs1 ~]#
[root@pcs1 ~]# id postgres
uid=54322(postgres) gid=54323(postgres) groups=54323(postgres)
[root@pcs1 ~]#

[root@pcs1 ~]# mkdir -p /u01/app/postgres/13.3
[root@pcs1 ~]# mkdir -p /u02/app/psql/13.3/DATA


6. Configure PostgreSQL

[root@pcs1 ~]# cd postgresql-13.3
[root@pcs1 postgresql-13.3]# ls -ltr
total 744
-rw-r--r--.  1 1107 1107   1213 May 11  2021 README
-rw-r--r--.  1 1107 1107   1665 May 11  2021 Makefile
-rw-r--r--.  1 1107 1107    277 May 11  2021 HISTORY
-rw-r--r--.  1 1107 1107   4278 May 11  2021 GNUmakefile.in
-rw-r--r--.  1 1107 1107   1192 May 11  2021 COPYRIGHT
-rw-r--r--.  1 1107 1107  82388 May 11  2021 configure.in
-rwxr-xr-x.  1 1107 1107 568656 May 11  2021 configure
-rw-r--r--.  1 1107 1107    490 May 11  2021 aclocal.m4
drwxrwxrwx. 57 1107 1107   4096 May 11  2021 contrib
drwxrwxrwx.  2 1107 1107   4096 May 11  2021 config
drwxrwxrwx.  3 1107 1107     87 May 11  2021 doc
-rw-r--r--.  1 1107 1107  63684 May 11  2021 INSTALL
drwxrwxrwx. 16 1107 1107   4096 May 11  2021 src
[root@pcs1 postgresql-13.3]# ./configure --prefix=/u01/app/postgres/13.3 --with-pgport=5432
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking which template to use... linux
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gawk... gawk
checking whether gcc -std=gnu99 supports -Wdeclaration-after-statement, for CFLAGS... yes
checking whether gcc -std=gnu99 supports -Werror=vla, for CFLAGS... yes
checking whether gcc -std=gnu99 supports -Wendif-labels, for CFLAGS... yes
checking whether g++ supports -Wendif-labels, for CXXFLAGS... yes
checking whether gcc -std=gnu99 supports -Wmissing-format-attribute, for CFLAGS... yes
checking whether g++ supports -Wmissing-format-attribute, for CXXFLAGS... yes
checking whether gcc -std=gnu99 supports -Wimplicit-fallthrough=3, for CFLAGS... no
checking whether g++ supports -Wimplicit-fallthrough=3, for CXXFLAGS... no
checking whether gcc -std=gnu99 supports -Wformat-security, for CFLAGS... yes
checking whether g++ supports -Wformat-security, for CXXFLAGS... yes
checking whether gcc -std=gnu99 supports -fno-strict-aliasing, for CFLAGS... yes
checking whether g++ supports -fno-strict-aliasing, for CXXFLAGS... yes
checking whether gcc -std=gnu99 supports -fwrapv, for CFLAGS... yes
checking whether g++ supports -fwrapv, for CXXFLAGS... yes
checking whether gcc -std=gnu99 supports -fexcess-precision=standard, for CFLAGS... yes
checking whether g++ supports -fexcess-precision=standard, for CXXFLAGS... no
checking whether gcc -std=gnu99 supports -funroll-loops, for CFLAGS_VECTOR... yes
checking whether gcc -std=gnu99 supports -ftree-vectorize, for CFLAGS_VECTOR... yes
checking whether gcc -std=gnu99 supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... no
checking whether gcc -std=gnu99 supports -Wformat-truncation, for NOT_THE_CFLAGS... no
checking whether gcc -std=gnu99 supports -Wstringop-truncation, for NOT_THE_CFLAGS... no
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking allow thread-safe client libraries... yes
checking whether to build with ICU support... no
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with PAM support... no
checking whether to build with BSD Authentication support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking whether to build with SELinux support... no
checking whether to build with systemd support... no
checking whether to build with XML support... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for tar... /usr/bin/tar
checking whether ln -s works... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for bison... /usr/bin/bison
configure: using bison (GNU Bison) 3.0.4
checking for flex... /usr/bin/flex
configure: using flex 2.5.37
checking for perl... /usr/bin/perl
configure: using perl 5.16.3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether gcc -std=gnu99 is Clang... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strerror_r... yes
checking for getpwuid_r... yes
checking for gethostbyname_r... yes
checking whether strerror_r returns int... no
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing shm_open... -lrt
checking for library containing shm_unlink... none required
checking for library containing clock_gettime... none required
checking for library containing fdatasync... none required
checking for library containing sched_yield... none required
checking for library containing gethostbyname_r... none required
checking for library containing shmget... none required
checking for library containing backtrace_symbols... none required
checking for library containing readline... -lreadline
checking for inflate in -lz... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking copyfile.h usability... no
checking copyfile.h presence... no
checking for copyfile.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking mbarrier.h usability... no
checking mbarrier.h presence... no
checking for mbarrier.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/procctl.h usability... no
checking sys/procctl.h presence... no
checking for sys/procctl.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/tas.h usability... no
checking sys/tas.h presence... no
checking for sys/tas.h... no
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking ucred.h usability... no
checking ucred.h presence... no
checking for ucred.h... no
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for net/if.h... yes
checking for sys/ucred.h... no
checking for netinet/tcp.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for printf format archetype... gnu_printf
checking for __func__... yes
checking for _Static_assert... yes
checking for typeof... typeof
checking for __builtin_types_compatible_p... yes
checking for __builtin_constant_p... yes
checking for __builtin_unreachable... yes
checking for computed goto support... yes
checking for struct tm.tm_zone... yes
checking for union semun... no
checking for struct sockaddr_un... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct sockaddr_storage.ss_len... no
checking for struct sockaddr_storage.__ss_len... no
checking for struct sockaddr.sa_len... no
checking for struct addrinfo... yes
checking for locale_t... yes
checking for C/C++ restrict keyword... __restrict
checking for struct cmsgcred... no
checking for struct option... yes
checking for z_streamp... yes
checking whether assembler supports x86_64 popcntq... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of off_t... 8
checking size of bool... 1
checking for int timezone... yes
checking types of arguments for accept()... int, int, struct sockaddr *, socklen_t *
checking whether gettimeofday takes only one argument... no
checking for wcstombs_l declaration... no
checking for backtrace_symbols... yes
checking for clock_gettime... yes
checking for copyfile... no
checking for fdatasync... yes
checking for getifaddrs... yes
checking for getpeerucred... no
checking for getrlimit... yes
checking for kqueue... no
checking for mbstowcs_l... no
checking for memset_s... no
checking for poll... yes
checking for posix_fallocate... yes
checking for ppoll... yes
checking for pstat... no
checking for pthread_is_threaded_np... no
checking for readlink... yes
checking for setproctitle... no
checking for setproctitle_fast... no
checking for setsid... yes
checking for shm_open... yes
checking for strchrnul... yes
checking for strsignal... yes
checking for symlink... yes
checking for sync_file_range... yes
checking for uselocale... yes
checking for wcstombs_l... no
checking for __builtin_bswap16... yes
checking for __builtin_bswap32... yes
checking for __builtin_bswap64... yes
checking for __builtin_clz... yes
checking for __builtin_ctz... yes
checking for __builtin_popcount... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking how gcc -std=gnu99 reports undeclared, standard C functions... error
checking for posix_fadvise... yes
checking whether posix_fadvise is declared... yes
checking whether fdatasync is declared... yes
checking whether strlcat is declared... no
checking whether strlcpy is declared... no
checking whether strnlen is declared... yes
checking whether F_FULLFSYNC is declared... no
checking whether RTLD_GLOBAL is declared... yes
checking whether RTLD_NOW is declared... yes
checking for struct sockaddr_in6... yes
checking for PS_STRINGS... no
checking for dlopen... yes
checking for explicit_bzero... no
checking for fls... no
checking for getopt... yes
checking for getpeereid... no
checking for getrusage... yes
checking for inet_aton... yes
checking for link... yes
checking for mkdtemp... yes
checking for pread... yes
checking for pwrite... yes
checking for random... yes
checking for srandom... yes
checking for strlcat... no
checking for strlcpy... no
checking for strnlen... yes
checking for strtof... yes
checking for unsetenv... yes
checking for getaddrinfo... yes
checking for getopt_long... yes
checking for syslog... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for opterr... yes
checking for optreset... no
checking for strtoll... yes
checking for strtoull... yes
checking whether strtoll is declared... yes
checking whether strtoull is declared... yes
checking for rl_completion_append_character... yes
checking for rl_completion_suppress_quote... yes
checking for rl_filename_quote_characters... yes
checking for rl_filename_quoting_function... yes
checking for rl_completion_matches... yes
checking for rl_filename_completion_function... yes
checking for rl_reset_screen_size... yes
checking for append_history... yes
checking for history_truncate_file... yes
checking test program... ok
checking whether long int is 64 bits... yes
checking for __builtin_mul_overflow... no
checking size of void *... 8
checking size of size_t... 8
checking size of long... 8
checking alignment of short... 2
checking alignment of int... 4
checking alignment of long... 8
checking alignment of double... 8
checking for int8... no
checking for uint8... no
checking for int64... no
checking for uint64... no
checking for __int128... yes
checking for __int128 alignment bug... ok
checking alignment of PG_INT128_TYPE... 16
checking for builtin __sync char locking functions... yes
checking for builtin __sync int32 locking functions... yes
checking for builtin __sync int32 atomic operations... yes
checking for builtin __sync int64 atomic operations... yes
checking for builtin __atomic int32 atomic operations... yes
checking for builtin __atomic int64 atomic operations... yes
checking for __get_cpuid... yes
checking for __cpuid... no
checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... no
checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... yes
checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... no
checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... no
checking which CRC-32C implementation to use... SSE 4.2 with runtime check
checking for library containing sem_init... -lpthread
checking which semaphore API to use... unnamed POSIX
checking for /dev/urandom... yes
checking which random number source to use... /dev/urandom
checking for xmllint... /usr/bin/xmllint
checking for xsltproc... /usr/bin/xsltproc
checking for fop... no
checking for dbtoepub... no
checking thread safety of required library functions... yes
checking whether gcc -std=gnu99 supports -Wl,--as-needed... yes
configure: using compiler=gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)
configure: using CFLAGS=-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2
configure: using CPPFLAGS= -D_GNU_SOURCE
configure: using LDFLAGS=  -Wl,--as-needed
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/Makefile.global
config.status: creating src/include/pg_config.h
config.status: creating src/include/pg_config_ext.h
config.status: creating src/interfaces/ecpg/include/ecpg_config.h
config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s
config.status: linking src/backend/port/posix_sema.c to src/backend/port/pg_sema.c
config.status: linking src/backend/port/sysv_shmem.c to src/backend/port/pg_shmem.c
config.status: linking src/include/port/linux.h to src/include/pg_config_os.h
config.status: linking src/makefiles/Makefile.linux to src/Makefile.port
[root@pcs1 postgresql-13.3]#


7. Build postgreSQL using make command

[root@pcs1 postgresql-13.3]#
[root@pcs1 postgresql-13.3]# ls -ltr
total 1216
-rw-r--r--.  1 1107 1107   1213 May 11  2021 README
-rw-r--r--.  1 1107 1107   1665 May 11  2021 Makefile  -------
-rw-r--r--.  1 1107 1107    277 May 11  2021 HISTORY
-rw-r--r--.  1 1107 1107   4278 May 11  2021 GNUmakefile.in
-rw-r--r--.  1 1107 1107   1192 May 11  2021 COPYRIGHT
-rw-r--r--.  1 1107 1107  82388 May 11  2021 configure.in
-rwxr-xr-x.  1 1107 1107 568656 May 11  2021 configure
-rw-r--r--.  1 1107 1107    490 May 11  2021 aclocal.m4
drwxrwxrwx. 57 1107 1107   4096 May 11  2021 contrib
drwxrwxrwx.  2 1107 1107   4096 May 11  2021 config
drwxrwxrwx.  3 1107 1107     87 May 11  2021 doc
-rw-r--r--.  1 1107 1107  63684 May 11  2021 INSTALL
-rwxr-xr-x.  1 root root  40104 Dec 23 00:40 config.status
-rw-r--r--.  1 root root   4278 Dec 23 00:40 GNUmakefile
drwxrwxrwx. 16 1107 1107   4096 Dec 23 00:40 src
-rw-r--r--.  1 root root 433580 Dec 23 00:40 config.log
[root@pcs1 postgresql-13.3]#
[root@pcs1 postgresql-13.3]# which make
/usr/bin/make
[root@pcs1 postgresql-13.3]#
[root@pcs1 postgresql-13.3]# make
..
..
..
make -C test/perl all
make[2]: Entering directory `/root/postgresql-13.3/src/test/perl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/postgresql-13.3/src/test/perl'
make[1]: Leaving directory `/root/postgresql-13.3/src'
make -C config all
make[1]: Entering directory `/root/postgresql-13.3/config'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/postgresql-13.3/config'
All of PostgreSQL successfully made. Ready to install.   <---------------------
[root@pcs1 postgresql-13.3]#


8. Install postgreSQL using make install command

[root@pcs1 postgresql-13.3]# pwd
/root/postgresql-13.3
[root@pcs1 postgresql-13.3]# ls -ltr /u01/app/postgres/13.3/
total 0   <--------
[root@pcs1 postgresql-13.3]#
[root@pcs1 postgresql-13.3]# make install
make -C ./src/backend generated-headers
make[1]: Entering directory `/root/postgresql-13.3/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make[1]: Leaving directory `/root/postgresql-13.3/src/backend'
make -C src install
make[1]: Entering directory `/root/postgresql-13.3/src'
make -C common install
make[2]: Entering directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644  libpgcommon.a '/u01/app/postgres/13.3/lib/libpgcommon.a'
/usr/bin/install -c -m 644  libpgcommon_shlib.a '/u01/app/postgres/13.3/lib/libpgcommon_shlib.a'
make[2]: Leaving directory `/root/postgresql-13.3/src/common'
make -C port install
make[2]: Entering directory `/root/postgresql-13.3/src/port'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644  libpgport.a '/u01/app/postgres/13.3/lib/libpgport.a'
/usr/bin/install -c -m 644  libpgport_shlib.a '/u01/app/postgres/13.3/lib/libpgport_shlib.a'
make[2]: Leaving directory `/root/postgresql-13.3/src/port'
make -C timezone install
make[2]: Entering directory `/root/postgresql-13.3/src/timezone'
make -C ../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share'
./zic -d '/u01/app/postgres/13.3/share/timezone'  ./data/tzdata.zi
make -C tznames install
make[3]: Entering directory `/root/postgresql-13.3/src/timezone/tznames'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/timezonesets'
/usr/bin/install -c -m 644 ./Africa.txt ./America.txt ./Antarctica.txt ./Asia.txt ./Atlantic.txt ./Australia.txt ./Etc.txt ./Europe.txt ./Indian.txt ./Pacific.txt '/u01/app/postgres/13.3/share/timezonesets'
/usr/bin/install -c -m 644 ./Default ./Australia ./India '/u01/app/postgres/13.3/share/timezonesets'
make[3]: Leaving directory `/root/postgresql-13.3/src/timezone/tznames'
make[2]: Leaving directory `/root/postgresql-13.3/src/timezone'
make -C backend install
make[2]: Entering directory `/root/postgresql-13.3/src/backend'
make -C ../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
make -C catalog distprep generated-header-symlinks
make[3]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[3]: Nothing to be done for `distprep'.
make[3]: Nothing to be done for `generated-header-symlinks'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make[3]: Nothing to be done for `distprep'.
make[3]: Nothing to be done for `generated-header-symlinks'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make -C access all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/access'
make -C brin all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/brin'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/brin'
make -C common all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/common'
make -C gin all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/gin'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/gin'
make -C gist all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/gist'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/gist'
make -C hash all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/hash'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/hash'
make -C heap all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/heap'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/heap'
make -C index all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/index'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/index'
make -C nbtree all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/nbtree'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/nbtree'
make -C rmgrdesc all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/rmgrdesc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/rmgrdesc'
make -C spgist all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/spgist'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/spgist'
make -C table all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/table'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/table'
make -C tablesample all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/tablesample'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/tablesample'
make -C transam all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/transam'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/transam'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/access'
make -C bootstrap all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/bootstrap'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/bootstrap'
make -C catalog all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C parser all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/parser'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/parser'
make -C commands all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/commands'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/commands'
make -C executor all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/executor'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/executor'
make -C foreign all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/foreign'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/foreign'
make -C lib all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/lib'
make -C libpq all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/libpq'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/libpq'
make -C main all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/main'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/main'
make -C nodes all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/nodes'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/nodes'
make -C optimizer all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/optimizer'
make -C geqo all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/geqo'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/geqo'
make -C path all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/path'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/path'
make -C plan all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/plan'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/plan'
make -C prep all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/prep'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/prep'
make -C util all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/util'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/util'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer'
make -C partitioning all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/partitioning'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/partitioning'
make -C port all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/port'
make -C postmaster all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/postmaster'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/postmaster'
make -C regex all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/regex'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/regex'
make -C replication all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/replication'
make -C logical all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/replication/logical'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/replication/logical'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/replication'
make -C rewrite all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/rewrite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/rewrite'
make -C statistics all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/statistics'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/statistics'
make -C storage all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/storage'
make -C buffer all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/buffer'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/buffer'
make -C file all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/file'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/file'
make -C freespace all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/freespace'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/freespace'
make -C ipc all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/ipc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/ipc'
make -C large_object all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/large_object'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/large_object'
make -C lmgr all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/lmgr'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/lmgr'
make -C page all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/page'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/page'
make -C smgr all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/smgr'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/smgr'
make -C sync all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/sync'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/sync'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/storage'
make -C tcop all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/tcop'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/tcop'
make -C tsearch all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/tsearch'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/tsearch'
make -C utils all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make -C adt all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/adt'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/adt'
make -C cache all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/cache'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/cache'
make -C error all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/error'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/error'
make -C fmgr all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/fmgr'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/fmgr'
make -C hash all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/hash'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/hash'
make -C init all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/init'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/init'
make -C mb all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb'
make -C misc all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/misc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/misc'
make -C mmgr all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/mmgr'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mmgr'
make -C resowner all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/resowner'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/resowner'
make -C sort all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/sort'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/sort'
make -C time all
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/time'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/time'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make -C ../../src/timezone all
make[3]: Entering directory `/root/postgresql-13.3/src/timezone'
make -C ../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make[3]: Leaving directory `/root/postgresql-13.3/src/timezone'
make -C jit all
make[3]: Entering directory `/root/postgresql-13.3/src/backend/jit'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/jit'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin' '/u01/app/postgres/13.3/share'
/usr/bin/install -c  postgres '/u01/app/postgres/13.3/bin/postgres'
ln -s postgres '/u01/app/postgres/13.3/bin/postmaster'
make -C access install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/access'
make -C brin install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/brin'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/brin'
make -C common install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/common'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/common'
make -C gin install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/gin'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/gin'
make -C gist install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/gist'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/gist'
make -C hash install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/hash'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/hash'
make -C heap install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/heap'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/heap'
make -C index install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/index'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/index'
make -C nbtree install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/nbtree'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/nbtree'
make -C rmgrdesc install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/rmgrdesc'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/rmgrdesc'
make -C spgist install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/spgist'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/spgist'
make -C table install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/table'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/table'
make -C tablesample install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/tablesample'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/tablesample'
make -C transam install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/access/transam'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/access/transam'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/access'
make -C bootstrap install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/bootstrap'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/bootstrap'
make -C catalog install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C parser install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/parser'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/parser'
make -C commands install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/commands'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/commands'
make -C executor install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/executor'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/executor'
make -C foreign install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/foreign'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/foreign'
make -C lib install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/lib'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/lib'
make -C libpq install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/libpq'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/libpq'
make -C main install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/main'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/main'
make -C nodes install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/nodes'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/nodes'
make -C optimizer install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/optimizer'
make -C geqo install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/geqo'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/geqo'
make -C path install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/path'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/path'
make -C plan install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/plan'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/plan'
make -C prep install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/prep'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/prep'
make -C util install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/optimizer/util'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer/util'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/optimizer'
make -C partitioning install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/partitioning'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/partitioning'
make -C port install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/port'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/port'
make -C postmaster install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/postmaster'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/postmaster'
make -C regex install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/regex'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/regex'
make -C replication install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/replication'
make -C logical install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/replication/logical'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/replication/logical'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/replication'
make -C rewrite install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/rewrite'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/rewrite'
make -C statistics install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/statistics'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/statistics'
make -C storage install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/storage'
make -C buffer install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/buffer'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/buffer'
make -C file install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/file'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/file'
make -C freespace install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/freespace'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/freespace'
make -C ipc install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/ipc'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/ipc'
make -C large_object install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/large_object'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/large_object'
make -C lmgr install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/lmgr'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/lmgr'
make -C page install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/page'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/page'
make -C smgr install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/smgr'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/smgr'
make -C sync install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/storage/sync'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/storage/sync'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/storage'
make -C tcop install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/tcop'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/tcop'
make -C tsearch install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/tsearch'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/tsearch'
make -C utils install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make -C adt install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/adt'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/adt'
make -C cache install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/cache'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/cache'
make -C error install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/error'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/error'
make -C fmgr install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/fmgr'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/fmgr'
make -C hash install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/hash'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/hash'
make -C init install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/init'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/init'
make -C mb install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb'
make -C misc install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/misc'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/misc'
make -C mmgr install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/mmgr'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mmgr'
make -C resowner install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/resowner'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/resowner'
make -C sort install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/sort'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/sort'
make -C time install
make[4]: Entering directory `/root/postgresql-13.3/src/backend/utils/time'
make[4]: Nothing to be done for `install'.
make[4]: Leaving directory `/root/postgresql-13.3/src/backend/utils/time'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make -C ../../src/timezone install
make[3]: Entering directory `/root/postgresql-13.3/src/timezone'
make -C ../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share'
./zic -d '/u01/app/postgres/13.3/share/timezone'  ./data/tzdata.zi
make -C tznames install
make[4]: Entering directory `/root/postgresql-13.3/src/timezone/tznames'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/timezonesets'
/usr/bin/install -c -m 644 ./Africa.txt ./America.txt ./Antarctica.txt ./Asia.txt ./Atlantic.txt ./Australia.txt ./Etc.txt ./Europe.txt ./Indian.txt ./Pacific.txt '/u01/app/postgres/13.3/share/timezonesets'
/usr/bin/install -c -m 644 ./Default ./Australia ./India '/u01/app/postgres/13.3/share/timezonesets'
make[4]: Leaving directory `/root/postgresql-13.3/src/timezone/tznames'
make[3]: Leaving directory `/root/postgresql-13.3/src/timezone'
make -C jit install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/jit'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/jit'
make -C catalog install-data
make[3]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share'
/usr/bin/install -c -m 644 `for f in ./postgres.bki; do test -r $f && echo $f && break; done` '/u01/app/postgres/13.3/share/postgres.bki'
/usr/bin/install -c -m 644 ./system_views.sql '/u01/app/postgres/13.3/share/system_views.sql'
/usr/bin/install -c -m 644 ./information_schema.sql '/u01/app/postgres/13.3/share/information_schema.sql'
/usr/bin/install -c -m 644 ./sql_features.txt '/u01/app/postgres/13.3/share/sql_features.txt'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C tsearch install-data
make[3]: Entering directory `/root/postgresql-13.3/src/backend/tsearch'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share' '/u01/app/postgres/13.3/share/tsearch_data'
/usr/bin/install -c -m 644 ./dicts/synonym_sample.syn ./dicts/thesaurus_sample.ths ./dicts/hunspell_sample.affix ./dicts/ispell_sample.affix ./dicts/ispell_sample.dict ./dicts/hunspell_sample_long.affix ./dicts/hunspell_sample_long.dict ./dicts/hunspell_sample_num.affix ./dicts/hunspell_sample_num.dict '/u01/app/postgres/13.3/share/tsearch_data/'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/tsearch'
make -C utils install-data
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share'
/usr/bin/install -c -m 644 ./errcodes.txt '/u01/app/postgres/13.3/share/errcodes.txt'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
/usr/bin/install -c -m 644 ./libpq/pg_hba.conf.sample '/u01/app/postgres/13.3/share/pg_hba.conf.sample'
/usr/bin/install -c -m 644 ./libpq/pg_ident.conf.sample '/u01/app/postgres/13.3/share/pg_ident.conf.sample'
/usr/bin/install -c -m 644 ./utils/misc/postgresql.conf.sample '/u01/app/postgres/13.3/share/postgresql.conf.sample'
make[2]: Leaving directory `/root/postgresql-13.3/src/backend'
make -C backend/utils/mb/conversion_procs install
make[2]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs'
make -C cyrillic_and_mic install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/cyrillic_and_mic'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  cyrillic_and_mic.so '/u01/app/postgres/13.3/lib/cyrillic_and_mic.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/cyrillic_and_mic'
make -C euc_cn_and_mic install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_cn_and_mic'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  euc_cn_and_mic.so '/u01/app/postgres/13.3/lib/euc_cn_and_mic.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_cn_and_mic'
make -C euc_jp_and_sjis install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  euc_jp_and_sjis.so '/u01/app/postgres/13.3/lib/euc_jp_and_sjis.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis'
make -C euc_kr_and_mic install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_kr_and_mic'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  euc_kr_and_mic.so '/u01/app/postgres/13.3/lib/euc_kr_and_mic.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_kr_and_mic'
make -C euc_tw_and_big5 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_tw_and_big5'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  euc_tw_and_big5.so '/u01/app/postgres/13.3/lib/euc_tw_and_big5.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc_tw_and_big5'
make -C latin2_and_win1250 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/latin2_and_win1250'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  latin2_and_win1250.so '/u01/app/postgres/13.3/lib/latin2_and_win1250.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/latin2_and_win1250'
make -C latin_and_mic install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/latin_and_mic'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  latin_and_mic.so '/u01/app/postgres/13.3/lib/latin_and_mic.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/latin_and_mic'
make -C utf8_and_big5 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_big5'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_big5.so '/u01/app/postgres/13.3/lib/utf8_and_big5.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_big5'
make -C utf8_and_cyrillic install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_cyrillic.so '/u01/app/postgres/13.3/lib/utf8_and_cyrillic.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic'
make -C utf8_and_euc_cn install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_euc_cn.so '/u01/app/postgres/13.3/lib/utf8_and_euc_cn.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn'
make -C utf8_and_euc_jp install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_euc_jp.so '/u01/app/postgres/13.3/lib/utf8_and_euc_jp.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp'
make -C utf8_and_euc_kr install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_euc_kr.so '/u01/app/postgres/13.3/lib/utf8_and_euc_kr.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr'
make -C utf8_and_euc_tw install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_euc_tw.so '/u01/app/postgres/13.3/lib/utf8_and_euc_tw.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw'
make -C utf8_and_gb18030 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_gb18030'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_gb18030.so '/u01/app/postgres/13.3/lib/utf8_and_gb18030.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_gb18030'
make -C utf8_and_gbk install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_gbk'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_gbk.so '/u01/app/postgres/13.3/lib/utf8_and_gbk.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_gbk'
make -C utf8_and_iso8859 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_iso8859'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_iso8859.so '/u01/app/postgres/13.3/lib/utf8_and_iso8859.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_iso8859'
make -C utf8_and_iso8859_1 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_iso8859_1.so '/u01/app/postgres/13.3/lib/utf8_and_iso8859_1.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1'
make -C utf8_and_johab install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_johab'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_johab.so '/u01/app/postgres/13.3/lib/utf8_and_johab.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_johab'
make -C utf8_and_sjis install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_sjis'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_sjis.so '/u01/app/postgres/13.3/lib/utf8_and_sjis.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_sjis'
make -C utf8_and_win install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_win'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_win.so '/u01/app/postgres/13.3/lib/utf8_and_win.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_win'
make -C utf8_and_uhc install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_uhc'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_uhc.so '/u01/app/postgres/13.3/lib/utf8_and_uhc.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_uhc'
make -C utf8_and_euc2004 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc2004'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_euc2004.so '/u01/app/postgres/13.3/lib/utf8_and_euc2004.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_euc2004'
make -C utf8_and_sjis2004 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  utf8_and_sjis2004.so '/u01/app/postgres/13.3/lib/utf8_and_sjis2004.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004'
make -C euc2004_sjis2004 install
make[3]: Entering directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc2004_sjis2004'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  euc2004_sjis2004.so '/u01/app/postgres/13.3/lib/euc2004_sjis2004.so'
make[3]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs/euc2004_sjis2004'
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/utils/mb/conversion_procs'
make -C backend/snowball install
make[2]: Entering directory `/root/postgresql-13.3/src/backend/snowball'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share' '/u01/app/postgres/13.3/share/tsearch_data'
/usr/bin/install -c -m 755  dict_snowball.so '/u01/app/postgres/13.3/lib/dict_snowball.so'
/usr/bin/install -c -m 644 snowball_create.sql '/u01/app/postgres/13.3/share'
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/snowball'
make -C include install
make[2]: Entering directory `/root/postgresql-13.3/src/include'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/libpq' '/u01/app/postgres/13.3/include/internal/libpq'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server'/access '/u01/app/postgres/13.3/include/server'/bootstrap '/u01/app/postgres/13.3/include/server'/catalog '/u01/app/postgres/13.3/include/server'/commands '/u01/app/postgres/13.3/include/server'/common '/u01/app/postgres/13.3/include/server'/datatype '/u01/app/postgres/13.3/include/server'/executor '/u01/app/postgres/13.3/include/server'/fe_utils '/u01/app/postgres/13.3/include/server'/foreign '/u01/app/postgres/13.3/include/server'/jit '/u01/app/postgres/13.3/include/server'/lib '/u01/app/postgres/13.3/include/server'/libpq '/u01/app/postgres/13.3/include/server'/mb '/u01/app/postgres/13.3/include/server'/nodes '/u01/app/postgres/13.3/include/server'/optimizer '/u01/app/postgres/13.3/include/server'/parser '/u01/app/postgres/13.3/include/server'/partitioning '/u01/app/postgres/13.3/include/server'/postmaster '/u01/app/postgres/13.3/include/server'/regex '/u01/app/postgres/13.3/include/server'/replication '/u01/app/postgres/13.3/include/server'/rewrite '/u01/app/postgres/13.3/include/server'/statistics '/u01/app/postgres/13.3/include/server'/storage '/u01/app/postgres/13.3/include/server'/tcop '/u01/app/postgres/13.3/include/server'/snowball '/u01/app/postgres/13.3/include/server'/snowball/libstemmer '/u01/app/postgres/13.3/include/server'/tsearch '/u01/app/postgres/13.3/include/server'/tsearch/dicts '/u01/app/postgres/13.3/include/server'/utils '/u01/app/postgres/13.3/include/server'/port '/u01/app/postgres/13.3/include/server'/port/atomics '/u01/app/postgres/13.3/include/server'/port/win32 '/u01/app/postgres/13.3/include/server'/port/win32_msvc '/u01/app/postgres/13.3/include/server'/port/win32_msvc/sys '/u01/app/postgres/13.3/include/server'/port/win32/arpa '/u01/app/postgres/13.3/include/server'/port/win32/netinet '/u01/app/postgres/13.3/include/server'/port/win32/sys '/u01/app/postgres/13.3/include/server'/portability
/usr/bin/install -c -m 644 ./postgres_ext.h   '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 ./libpq/libpq-fs.h '/u01/app/postgres/13.3/include/libpq'
/usr/bin/install -c -m 644 pg_config.h     '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 pg_config_ext.h '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 pg_config_os.h  '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 ./pg_config_manual.h '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 ./c.h            '/u01/app/postgres/13.3/include/internal'
/usr/bin/install -c -m 644 ./port.h         '/u01/app/postgres/13.3/include/internal'
/usr/bin/install -c -m 644 ./postgres_fe.h  '/u01/app/postgres/13.3/include/internal'
/usr/bin/install -c -m 644 ./libpq/pqcomm.h '/u01/app/postgres/13.3/include/internal/libpq'
/usr/bin/install -c -m 644 pg_config.h     '/u01/app/postgres/13.3/include/server'
/usr/bin/install -c -m 644 pg_config_ext.h '/u01/app/postgres/13.3/include/server'
/usr/bin/install -c -m 644 pg_config_os.h  '/u01/app/postgres/13.3/include/server'
/usr/bin/install -c -m 644 utils/errcodes.h '/u01/app/postgres/13.3/include/server/utils'
/usr/bin/install -c -m 644 utils/fmgroids.h '/u01/app/postgres/13.3/include/server/utils'
/usr/bin/install -c -m 644 utils/fmgrprotos.h '/u01/app/postgres/13.3/include/server/utils'
cp ./*.h '/u01/app/postgres/13.3/include/server'/
for dir in access bootstrap catalog commands common datatype executor fe_utils foreign jit lib libpq mb nodes optimizer parser partitioning postmaster regex replication rewrite statistics storage tcop snowball snowball/libstemmer tsearch tsearch/dicts utils port port/atomics port/win32 port/win32_msvc port/win32_msvc/sys port/win32/arpa port/win32/netinet port/win32/sys portability; do \
  cp ./$dir/*.h '/u01/app/postgres/13.3/include/server'/$dir/ || exit; \
done
cd '/u01/app/postgres/13.3/include/server' && chmod 644 *.h
for dir in access bootstrap catalog commands common datatype executor fe_utils foreign jit lib libpq mb nodes optimizer parser partitioning postmaster regex replication rewrite statistics storage tcop snowball snowball/libstemmer tsearch tsearch/dicts utils port port/atomics port/win32 port/win32_msvc port/win32_msvc/sys port/win32/arpa port/win32/netinet port/win32/sys portability; do \
  cd '/u01/app/postgres/13.3/include/server'/$dir || exit; \
  chmod 644 *.h || exit; \
done
make[2]: Leaving directory `/root/postgresql-13.3/src/include'
make -C interfaces install
make[2]: Entering directory `/root/postgresql-13.3/src/interfaces'
make -C libpq install
make[3]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib' '/u01/app/postgres/13.3/lib/pkgconfig'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include' '/u01/app/postgres/13.3/include/internal' '/u01/app/postgres/13.3/share'
/usr/bin/install -c -m 755  libpq.so.5.13 '/u01/app/postgres/13.3/lib/libpq.so.5.13'
cd '/u01/app/postgres/13.3/lib' && \
rm -f libpq.so.5 && \
ln -s libpq.so.5.13 libpq.so.5
cd '/u01/app/postgres/13.3/lib' && \
rm -f libpq.so && \
ln -s libpq.so.5.13 libpq.so
/usr/bin/install -c -m 644  libpq.a '/u01/app/postgres/13.3/lib/libpq.a'
/usr/bin/install -c -m 644 libpq.pc '/u01/app/postgres/13.3/lib/pkgconfig/libpq.pc'
/usr/bin/install -c -m 644 ./libpq-fe.h '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 ./libpq-events.h '/u01/app/postgres/13.3/include'
/usr/bin/install -c -m 644 ./libpq-int.h '/u01/app/postgres/13.3/include/internal'
/usr/bin/install -c -m 644 ./pqexpbuffer.h '/u01/app/postgres/13.3/include/internal'
/usr/bin/install -c -m 644 ./pg_service.conf.sample '/u01/app/postgres/13.3/share/pg_service.conf.sample'
make[3]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ecpg install
make[3]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg'
make -C include install
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/include'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include' '/u01/app/postgres/13.3/include/informix/esql'
/usr/bin/install -c -m 644 ./ecpgerrno.h ./ecpglib.h ./ecpgtype.h ./sqlca.h ./sql3types.h ./ecpg_informix.h ./pgtypes_error.h ./pgtypes_numeric.h ./pgtypes_timestamp.h ./pgtypes_date.h ./pgtypes_interval.h ./pgtypes.h ./sqlda.h ./sqlda-compat.h ./sqlda-native.h '/u01/app/postgres/13.3/include/'
/usr/bin/install -c -m 644 ./datetime.h ./decimal.h ./sqltypes.h '/u01/app/postgres/13.3/include/informix/esql/'
/usr/bin/install -c -m 644 ../../../../src/interfaces/ecpg/include/ecpg_config.h '/u01/app/postgres/13.3/include'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/include'
make -C pgtypeslib install
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make -C ../../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib' '/u01/app/postgres/13.3/lib/pkgconfig'
/usr/bin/install -c -m 755  libpgtypes.so.3.13 '/u01/app/postgres/13.3/lib/libpgtypes.so.3.13'
cd '/u01/app/postgres/13.3/lib' && \
rm -f libpgtypes.so.3 && \
ln -s libpgtypes.so.3.13 libpgtypes.so.3
cd '/u01/app/postgres/13.3/lib' && \
rm -f libpgtypes.so && \
ln -s libpgtypes.so.3.13 libpgtypes.so
/usr/bin/install -c -m 644  libpgtypes.a '/u01/app/postgres/13.3/lib/libpgtypes.a'
/usr/bin/install -c -m 644 libpgtypes.pc '/u01/app/postgres/13.3/lib/pkgconfig/libpgtypes.pc'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make -C ecpglib install
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/ecpglib'
make -C ../../../../src/interfaces/libpq all
make[5]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[6]: Entering directory `/root/postgresql-13.3/src/port'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[6]: Entering directory `/root/postgresql-13.3/src/common'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/common'
make[5]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../../src/interfaces/ecpg/pgtypeslib all
make[5]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make -C ../../../../src/port all
make[6]: Entering directory `/root/postgresql-13.3/src/port'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../../src/common all
make[6]: Entering directory `/root/postgresql-13.3/src/common'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/common'
make[5]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib' '/u01/app/postgres/13.3/lib/pkgconfig'
/usr/bin/install -c -m 755  libecpg.so.6.13 '/u01/app/postgres/13.3/lib/libecpg.so.6.13'
cd '/u01/app/postgres/13.3/lib' && \
rm -f libecpg.so.6 && \
ln -s libecpg.so.6.13 libecpg.so.6
cd '/u01/app/postgres/13.3/lib' && \
rm -f libecpg.so && \
ln -s libecpg.so.6.13 libecpg.so
/usr/bin/install -c -m 644  libecpg.a '/u01/app/postgres/13.3/lib/libecpg.a'
/usr/bin/install -c -m 644 libecpg.pc '/u01/app/postgres/13.3/lib/pkgconfig/libecpg.pc'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/ecpglib'
make -C compatlib install
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/compatlib'
make -C ../../../../src/interfaces/ecpg/ecpglib all
make[5]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/ecpglib'
make -C ../../../../src/interfaces/libpq all
make[6]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[7]: Entering directory `/root/postgresql-13.3/src/port'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[7]: Entering directory `/root/postgresql-13.3/src/common'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/root/postgresql-13.3/src/common'
make[6]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../../src/interfaces/ecpg/pgtypeslib all
make[6]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make -C ../../../../src/port all
make[7]: Entering directory `/root/postgresql-13.3/src/port'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../../src/common all
make[7]: Entering directory `/root/postgresql-13.3/src/common'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/root/postgresql-13.3/src/common'
make[6]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make[5]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/ecpglib'
make -C ../../../../src/interfaces/ecpg/pgtypeslib all
make[5]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
make -C ../../../../src/port all
make[6]: Entering directory `/root/postgresql-13.3/src/port'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../../src/common all
make[6]: Entering directory `/root/postgresql-13.3/src/common'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/root/postgresql-13.3/src/common'
make[5]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/pgtypeslib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib' '/u01/app/postgres/13.3/lib/pkgconfig'
/usr/bin/install -c -m 755  libecpg_compat.so.3.13 '/u01/app/postgres/13.3/lib/libecpg_compat.so.3.13'
cd '/u01/app/postgres/13.3/lib' && \
rm -f libecpg_compat.so.3 && \
ln -s libecpg_compat.so.3.13 libecpg_compat.so.3
cd '/u01/app/postgres/13.3/lib' && \
rm -f libecpg_compat.so && \
ln -s libecpg_compat.so.3.13 libecpg_compat.so
/usr/bin/install -c -m 644  libecpg_compat.a '/u01/app/postgres/13.3/lib/libecpg_compat.a'
/usr/bin/install -c -m 644 libecpg_compat.pc '/u01/app/postgres/13.3/lib/pkgconfig/libecpg_compat.pc'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/compatlib'
make -C preproc install
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/ecpg/preproc'
make -C ../../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  ecpg '/u01/app/postgres/13.3/bin'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg/preproc'
make[3]: Leaving directory `/root/postgresql-13.3/src/interfaces/ecpg'
make[2]: Leaving directory `/root/postgresql-13.3/src/interfaces'
make -C backend/replication/libpqwalreceiver install
make[2]: Entering directory `/root/postgresql-13.3/src/backend/replication/libpqwalreceiver'
make -C ../../../../src/interfaces/libpq all
make[3]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make[3]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  libpqwalreceiver.so '/u01/app/postgres/13.3/lib/libpqwalreceiver.so'
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/replication/libpqwalreceiver'
make -C backend/replication/pgoutput install
make[2]: Entering directory `/root/postgresql-13.3/src/backend/replication/pgoutput'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  pgoutput.so '/u01/app/postgres/13.3/lib/pgoutput.so'
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/replication/pgoutput'
make -C fe_utils install
make[2]: Entering directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644  libpgfeutils.a '/u01/app/postgres/13.3/lib/libpgfeutils.a'
make[2]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
make -C bin install
make[2]: Entering directory `/root/postgresql-13.3/src/bin'
make -C initdb install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/initdb'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  initdb '/u01/app/postgres/13.3/bin/initdb'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/initdb'
make -C pg_archivecleanup install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_archivecleanup'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_archivecleanup '/u01/app/postgres/13.3/bin/pg_archivecleanup'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_archivecleanup'
make -C pg_basebackup install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_basebackup'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_basebackup '/u01/app/postgres/13.3/bin/pg_basebackup'
/usr/bin/install -c  pg_receivewal '/u01/app/postgres/13.3/bin/pg_receivewal'
/usr/bin/install -c  pg_recvlogical '/u01/app/postgres/13.3/bin/pg_recvlogical'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_basebackup'
make -C pg_checksums install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_checksums'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_checksums '/u01/app/postgres/13.3/bin/pg_checksums'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_checksums'
make -C pg_config install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_config'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c -m 755 pg_config '/u01/app/postgres/13.3/bin/pg_config'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_config'
make -C pg_controldata install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_controldata'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_controldata '/u01/app/postgres/13.3/bin/pg_controldata'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_controldata'
make -C pg_ctl install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_ctl'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_ctl '/u01/app/postgres/13.3/bin/pg_ctl'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_ctl'
make -C pg_dump install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_dump'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_dump '/u01/app/postgres/13.3/bin'/pg_dump
/usr/bin/install -c  pg_restore '/u01/app/postgres/13.3/bin'/pg_restore
/usr/bin/install -c  pg_dumpall '/u01/app/postgres/13.3/bin'/pg_dumpall
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_dump'
make -C pg_resetwal install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_resetwal'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_resetwal '/u01/app/postgres/13.3/bin/pg_resetwal'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_resetwal'
make -C pg_rewind install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_rewind'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_rewind '/u01/app/postgres/13.3/bin/pg_rewind'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_rewind'
make -C pg_test_fsync install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_test_fsync'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_test_fsync '/u01/app/postgres/13.3/bin/pg_test_fsync'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_test_fsync'
make -C pg_test_timing install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_test_timing'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_test_timing '/u01/app/postgres/13.3/bin/pg_test_timing'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_test_timing'
make -C pg_upgrade install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_upgrade'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_upgrade '/u01/app/postgres/13.3/bin/pg_upgrade'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_upgrade'
make -C pg_verifybackup install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_verifybackup'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_verifybackup '/u01/app/postgres/13.3/bin/pg_verifybackup'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_verifybackup'
make -C pg_waldump install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pg_waldump'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_waldump '/u01/app/postgres/13.3/bin/pg_waldump'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pg_waldump'
make -C pgbench install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/pgbench'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pgbench '/u01/app/postgres/13.3/bin/pgbench'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/pgbench'
make -C psql install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/psql'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin' '/u01/app/postgres/13.3/share'
/usr/bin/install -c  psql '/u01/app/postgres/13.3/bin/psql'
/usr/bin/install -c -m 644 ./psqlrc.sample '/u01/app/postgres/13.3/share/psqlrc.sample'
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/psql'
make -C scripts install
make[3]: Entering directory `/root/postgresql-13.3/src/bin/scripts'
make -C ../../../src/interfaces/libpq all
make[4]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[5]: Entering directory `/root/postgresql-13.3/src/port'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[5]: Entering directory `/root/postgresql-13.3/src/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/root/postgresql-13.3/src/common'
make[4]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../src/fe_utils all
make[4]: Entering directory `/root/postgresql-13.3/src/fe_utils'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/fe_utils'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  createdb   '/u01/app/postgres/13.3/bin'/createdb
/usr/bin/install -c  dropdb     '/u01/app/postgres/13.3/bin'/dropdb
/usr/bin/install -c  createuser '/u01/app/postgres/13.3/bin'/createuser
/usr/bin/install -c  dropuser   '/u01/app/postgres/13.3/bin'/dropuser
/usr/bin/install -c  clusterdb  '/u01/app/postgres/13.3/bin'/clusterdb
/usr/bin/install -c  vacuumdb   '/u01/app/postgres/13.3/bin'/vacuumdb
/usr/bin/install -c  reindexdb  '/u01/app/postgres/13.3/bin'/reindexdb
/usr/bin/install -c  pg_isready '/u01/app/postgres/13.3/bin'/pg_isready
make[3]: Leaving directory `/root/postgresql-13.3/src/bin/scripts'
make[2]: Leaving directory `/root/postgresql-13.3/src/bin'
make -C pl install
make[2]: Entering directory `/root/postgresql-13.3/src/pl'
make -C plpgsql install
make[3]: Entering directory `/root/postgresql-13.3/src/pl/plpgsql'
make -C src install
make[4]: Entering directory `/root/postgresql-13.3/src/pl/plpgsql/src'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  plpgsql.so '/u01/app/postgres/13.3/lib/plpgsql.so'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server'
/usr/bin/install -c -m 644 ./plpgsql.control ./plpgsql--1.0.sql '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 './plpgsql.h' '/u01/app/postgres/13.3/include/server'
make[4]: Leaving directory `/root/postgresql-13.3/src/pl/plpgsql/src'
make[3]: Leaving directory `/root/postgresql-13.3/src/pl/plpgsql'
make[2]: Leaving directory `/root/postgresql-13.3/src/pl'
make -C makefiles install
make[2]: Entering directory `/root/postgresql-13.3/src/makefiles'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib/pgxs/src/makefiles'
/usr/bin/install -c -m 644 ./pgxs.mk '/u01/app/postgres/13.3/lib/pgxs/src/makefiles/'
make[2]: Leaving directory `/root/postgresql-13.3/src/makefiles'
make -C test/regress install
make[2]: Entering directory `/root/postgresql-13.3/src/test/regress'
make -C ../../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
make -C ../../../contrib/spi
make[3]: Entering directory `/root/postgresql-13.3/contrib/spi'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/contrib/spi'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib/pgxs/src/test/regress'
/usr/bin/install -c  pg_regress '/u01/app/postgres/13.3/lib/pgxs/src/test/regress/pg_regress'
make[2]: Leaving directory `/root/postgresql-13.3/src/test/regress'
make -C test/isolation install
make[2]: Entering directory `/root/postgresql-13.3/src/test/isolation'
make -C ../../../src/interfaces/libpq all
make[3]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[4]: Entering directory `/root/postgresql-13.3/src/port'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[4]: Entering directory `/root/postgresql-13.3/src/common'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/postgresql-13.3/src/common'
make[3]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
make[2]: Leaving directory `/root/postgresql-13.3/src/test/isolation'
make -C test/perl install
make[2]: Entering directory `/root/postgresql-13.3/src/test/perl'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/root/postgresql-13.3/src/test/perl'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib/pgxs/src'
/usr/bin/install -c -m 644 Makefile.global '/u01/app/postgres/13.3/lib/pgxs/src/Makefile.global'
/usr/bin/install -c -m 644 Makefile.port '/u01/app/postgres/13.3/lib/pgxs/src/Makefile.port'
/usr/bin/install -c -m 644 ./Makefile.shlib '/u01/app/postgres/13.3/lib/pgxs/src/Makefile.shlib'
/usr/bin/install -c -m 644 ./nls-global.mk '/u01/app/postgres/13.3/lib/pgxs/src/nls-global.mk'
make[1]: Leaving directory `/root/postgresql-13.3/src'
make -C config install
make[1]: Entering directory `/root/postgresql-13.3/config'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib/pgxs/config'
/usr/bin/install -c -m 755 ./install-sh '/u01/app/postgres/13.3/lib/pgxs/config/install-sh'
/usr/bin/install -c -m 755 ./missing '/u01/app/postgres/13.3/lib/pgxs/config/missing'
make[1]: Leaving directory `/root/postgresql-13.3/config'
PostgreSQL installation complete.  <-----
[root@pcs1 postgresql-13.3]#

[root@pcs1 postgresql-13.3]# ls -ltr /u01/app/postgres/13.3/
total 16
drwxr-xr-x. 6 root root 4096 Dec 23 01:01 include
drwxr-xr-x. 2 root root 4096 Dec 23 01:01 bin
drwxr-xr-x. 6 root root 4096 Dec 23 01:01 share
drwxr-xr-x. 4 root root 4096 Dec 23 01:01 lib
[root@pcs1 postgresql-13.3]#


9. Build contrib module using make command (optional)

[root@pcs1 postgresql-13.3]# pwd
/root/postgresql-13.3
[root@pcs1 postgresql-13.3]#

[root@pcs1 postgresql-13.3]# ls -ltr
total 1216
-rw-r--r--.  1 1107 1107   1213 May 11  2021 README
-rw-r--r--.  1 1107 1107   1665 May 11  2021 Makefile
-rw-r--r--.  1 1107 1107    277 May 11  2021 HISTORY
-rw-r--r--.  1 1107 1107   4278 May 11  2021 GNUmakefile.in
-rw-r--r--.  1 1107 1107   1192 May 11  2021 COPYRIGHT
-rw-r--r--.  1 1107 1107  82388 May 11  2021 configure.in
-rwxr-xr-x.  1 1107 1107 568656 May 11  2021 configure
-rw-r--r--.  1 1107 1107    490 May 11  2021 aclocal.m4
drwxrwxrwx. 57 1107 1107   4096 May 11  2021 contrib
drwxrwxrwx.  2 1107 1107   4096 May 11  2021 config
drwxrwxrwx.  3 1107 1107     87 May 11  2021 doc
-rw-r--r--.  1 1107 1107  63684 May 11  2021 INSTALL
-rwxr-xr-x.  1 root root  40104 Dec 23 00:40 config.status
-rw-r--r--.  1 root root   4278 Dec 23 00:40 GNUmakefile
drwxrwxrwx. 16 1107 1107   4096 Dec 23 00:40 src
-rw-r--r--.  1 root root 433580 Dec 23 00:40 config.log
[root@pcs1 postgresql-13.3]# cd contrib/
[root@pcs1 contrib]# ls -ltr
total 196
-rw-r--r--. 1 1107 1107 1131 May 11  2021 README
-rw-r--r--. 1 1107 1107 1461 May 11  2021 Makefile
-rw-r--r--. 1 1107 1107   85 May 11  2021 contrib-global.mk
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 unaccent
drwxrwxrwx. 2 1107 1107   74 May 11  2021 tcn
drwxrwxrwx. 2 1107 1107 4096 May 11  2021 sslinfo
drwxrwxrwx. 2 1107 1107   60 May 11  2021 pg_standby
drwxrwxrwx. 2 1107 1107 4096 May 11  2021 pg_prewarm
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 hstore
drwxrwxrwx. 6 1107 1107 4096 May 11  2021 dblink
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 bool_plperl
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 adminpack
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 xml2
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 tsm_system_time
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 tsm_system_rows
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 test_decoding
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 tablefunc
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 sepgsql
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 pg_visibility
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 pg_trgm
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 pgstattuple
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 pg_stat_statements
drwxrwxrwx. 2 1107 1107 4096 May 11  2021 pg_freespacemap
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 pgcrypto
drwxrwxrwx. 4 1107 1107   90 May 11  2021 passwordcheck
drwxrwxrwx. 3 1107 1107   67 May 11  2021 oid2name
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 ltree_plpython
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 ltree
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 lo
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 jsonb_plpython
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 jsonb_plperl
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 isn
drwxrwxrwx. 6 1107 1107 4096 May 11  2021 intarray
drwxrwxrwx. 2 1107 1107   95 May 11  2021 intagg
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 hstore_plpython
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 hstore_plperl
drwxrwxrwx. 7 1107 1107 4096 May 11  2021 file_fdw
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 dict_xsyn
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 citext
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 btree_gist
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 btree_gin
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 bloom
drwxrwxrwx. 2 1107 1107   44 May 11  2021 auto_explain
drwxrwxrwx. 2 1107 1107   42 May 11  2021 auth_delay
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 amcheck
drwxrwxrwx. 3 1107 1107   67 May 11  2021 vacuumlo
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 uuid-ossp
drwxrwxrwx. 3 1107 1107   47 May 11  2021 start-scripts
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 postgres_fdw
drwxrwxrwx. 2 1107 1107 4096 May 11  2021 pgrowlocks
drwxrwxrwx. 2 1107 1107 4096 May 11  2021 pg_buffercache
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 pageinspect
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 fuzzystrmatch
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 earthdistance
drwxrwxrwx. 4 1107 1107 4096 May 11  2021 dict_int
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 seg
drwxrwxrwx. 5 1107 1107 4096 May 11  2021 cube
drwxrwxrwx. 2 1107 1107 4096 Dec 23 00:54 spi
[root@pcs1 contrib]#
[root@pcs1 contrib]# make
make -C ../src/backend generated-headers
make[1]: Entering directory `/root/postgresql-13.3/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make[1]: Leaving directory `/root/postgresql-13.3/src/backend'
make -C adminpack all
make[1]: Entering directory `/root/postgresql-13.3/contrib/adminpack'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I../../src/interfaces/libpq -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o adminpack.o adminpack.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -shared -o adminpack.so  adminpack.o -L../../src/port -L../../src/common    -Wl,--as-needed -Wl,-rpath,'/u01/app/postgres/13.3/lib',--enable-new-dtags
make[1]: Leaving directory `/root/postgresql-13.3/contrib/adminpack'
make -C amcheck all
make[1]: Entering directory `/root/postgresql-13.3/contrib/amcheck'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o verify_nbtree.o verify_nbtree.c
..
..
..
make[1]: Entering directory `/root/postgresql-13.3/contrib/unaccent'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o unaccent.o unaccent.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -shared -o unaccent.so  unaccent.o -L../../src/port -L../../src/common    -Wl,--as-needed -Wl,-rpath,'/u01/app/postgres/13.3/lib',--enable-new-dtags
make[1]: Leaving directory `/root/postgresql-13.3/contrib/unaccent'
make -C vacuumlo all
make[1]: Entering directory `/root/postgresql-13.3/contrib/vacuumlo'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -I../../src/interfaces/libpq -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o vacuumlo.o vacuumlo.c
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2  vacuumlo.o -L../../src/common -lpgcommon -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -L../../src/common   -Wl,--as-needed -Wl,-rpath,'/u01/app/postgres/13.3/lib',--enable-new-dtags   -lpgcommon -lpgport -lpthread -lz -lreadline -lrt -ldl -lm  -o vacuumlo
make[1]: Leaving directory `/root/postgresql-13.3/contrib/vacuumlo'
[root@pcs1 contrib]#


10. Install contrib module using make install command (optional)

[root@pcs1 contrib]# pwd
/root/postgresql-13.3/contrib
[root@pcs1 contrib]#
[root@pcs1 contrib]# make install
make -C ../src/backend generated-headers
make[1]: Entering directory `/root/postgresql-13.3/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-13.3/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-13.3/src/backend/utils'
make[1]: Leaving directory `/root/postgresql-13.3/src/backend'
make -C adminpack install
make[1]: Entering directory `/root/postgresql-13.3/contrib/adminpack'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  adminpack.so '/u01/app/postgres/13.3/lib/adminpack.so'
/usr/bin/install -c -m 644 ./adminpack.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./adminpack--1.0.sql ./adminpack--1.0--1.1.sql ./adminpack--1.1--2.0.sql ./adminpack--2.0--2.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/adminpack'
make -C amcheck install
make[1]: Entering directory `/root/postgresql-13.3/contrib/amcheck'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  amcheck.so '/u01/app/postgres/13.3/lib/amcheck.so'
/usr/bin/install -c -m 644 ./amcheck.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./amcheck--1.1--1.2.sql ./amcheck--1.0--1.1.sql ./amcheck--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/amcheck'
make -C auth_delay install
make[1]: Entering directory `/root/postgresql-13.3/contrib/auth_delay'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  auth_delay.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/auth_delay'
make -C auto_explain install
make[1]: Entering directory `/root/postgresql-13.3/contrib/auto_explain'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  auto_explain.so '/u01/app/postgres/13.3/lib/auto_explain.so'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/auto_explain'
make -C bloom install
make[1]: Entering directory `/root/postgresql-13.3/contrib/bloom'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  bloom.so '/u01/app/postgres/13.3/lib/bloom.so'
/usr/bin/install -c -m 644 ./bloom.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./bloom--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/bloom'
make -C btree_gin install
make[1]: Entering directory `/root/postgresql-13.3/contrib/btree_gin'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  btree_gin.so '/u01/app/postgres/13.3/lib/btree_gin.so'
/usr/bin/install -c -m 644 ./btree_gin.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./btree_gin--1.0.sql ./btree_gin--1.0--1.1.sql ./btree_gin--1.1--1.2.sql ./btree_gin--1.2--1.3.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/btree_gin'
make -C btree_gist install
make[1]: Entering directory `/root/postgresql-13.3/contrib/btree_gist'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  btree_gist.so '/u01/app/postgres/13.3/lib/btree_gist.so'
/usr/bin/install -c -m 644 ./btree_gist.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./btree_gist--1.0--1.1.sql ./btree_gist--1.1--1.2.sql ./btree_gist--1.2.sql ./btree_gist--1.2--1.3.sql ./btree_gist--1.3--1.4.sql ./btree_gist--1.4--1.5.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/btree_gist'
make -C citext install
make[1]: Entering directory `/root/postgresql-13.3/contrib/citext'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./citext.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./citext--1.4.sql ./citext--1.5--1.6.sql ./citext--1.4--1.5.sql ./citext--1.3--1.4.sql ./citext--1.2--1.3.sql ./citext--1.1--1.2.sql ./citext--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  citext.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/citext'
make -C cube install
make[1]: Entering directory `/root/postgresql-13.3/contrib/cube'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  cube.so '/u01/app/postgres/13.3/lib/cube.so'
/usr/bin/install -c -m 644 ./cube.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./cube--1.2.sql ./cube--1.2--1.3.sql ./cube--1.3--1.4.sql ./cube--1.1--1.2.sql ./cube--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server/extension/cube/'
/usr/bin/install -c -m 644   ./cubedata.h '/u01/app/postgres/13.3/include/server/extension/cube/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/cube'
make -C dblink install
make[1]: Entering directory `/root/postgresql-13.3/contrib/dblink'
make -C ../../src/interfaces/libpq all
make[2]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
make[2]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  dblink.so '/u01/app/postgres/13.3/lib/dblink.so'
/usr/bin/install -c -m 644 ./dblink.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./dblink--1.2.sql ./dblink--1.1--1.2.sql ./dblink--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/dblink'
make -C dict_int install
make[1]: Entering directory `/root/postgresql-13.3/contrib/dict_int'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  dict_int.so '/u01/app/postgres/13.3/lib/dict_int.so'
/usr/bin/install -c -m 644 ./dict_int.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./dict_int--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/dict_int'
make -C dict_xsyn install
make[1]: Entering directory `/root/postgresql-13.3/contrib/dict_xsyn'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/tsearch_data'
/usr/bin/install -c -m 755  dict_xsyn.so '/u01/app/postgres/13.3/lib/dict_xsyn.so'
/usr/bin/install -c -m 644 ./dict_xsyn.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./dict_xsyn--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./xsyn_sample.rules '/u01/app/postgres/13.3/share/tsearch_data/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/dict_xsyn'
make -C earthdistance install
make[1]: Entering directory `/root/postgresql-13.3/contrib/earthdistance'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./earthdistance.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./earthdistance--1.1.sql ./earthdistance--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  earthdistance.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/earthdistance'
make -C file_fdw install
make[1]: Entering directory `/root/postgresql-13.3/contrib/file_fdw'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./file_fdw.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./file_fdw--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  file_fdw.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/file_fdw'
make -C fuzzystrmatch install
make[1]: Entering directory `/root/postgresql-13.3/contrib/fuzzystrmatch'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  fuzzystrmatch.so '/u01/app/postgres/13.3/lib/fuzzystrmatch.so'
/usr/bin/install -c -m 644 ./fuzzystrmatch.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./fuzzystrmatch--1.1.sql ./fuzzystrmatch--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/fuzzystrmatch'
make -C hstore install
make[1]: Entering directory `/root/postgresql-13.3/contrib/hstore'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  hstore.so '/u01/app/postgres/13.3/lib/hstore.so'
/usr/bin/install -c -m 644 ./hstore.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./hstore--1.4.sql ./hstore--1.6--1.7.sql ./hstore--1.5--1.6.sql ./hstore--1.4--1.5.sql ./hstore--1.3--1.4.sql ./hstore--1.2--1.3.sql ./hstore--1.1--1.2.sql ./hstore--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server/extension/hstore/'
/usr/bin/install -c -m 644   ./hstore.h '/u01/app/postgres/13.3/include/server/extension/hstore/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/hstore'
make -C intagg install
make[1]: Entering directory `/root/postgresql-13.3/contrib/intagg'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 644 ./intagg.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./intagg--1.1.sql ./intagg--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/intagg'
make -C intarray install
make[1]: Entering directory `/root/postgresql-13.3/contrib/intarray'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  _int.so '/u01/app/postgres/13.3/lib/_int.so'
/usr/bin/install -c -m 644 ./intarray.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./intarray--1.2--1.3.sql ./intarray--1.2.sql ./intarray--1.1--1.2.sql ./intarray--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/intarray'
make -C isn install
make[1]: Entering directory `/root/postgresql-13.3/contrib/isn'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./isn.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./isn--1.1.sql ./isn--1.1--1.2.sql ./isn--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  isn.so '/u01/app/postgres/13.3/lib/'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server/extension/isn/'
/usr/bin/install -c -m 644  ./isn.h '/u01/app/postgres/13.3/include/server/extension/isn/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/isn'
make -C lo install
make[1]: Entering directory `/root/postgresql-13.3/contrib/lo'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./lo.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./lo--1.1.sql ./lo--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  lo.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/lo'
make -C ltree install
make[1]: Entering directory `/root/postgresql-13.3/contrib/ltree'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  ltree.so '/u01/app/postgres/13.3/lib/ltree.so'
/usr/bin/install -c -m 644 ./ltree.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./ltree--1.1--1.2.sql ./ltree--1.1.sql ./ltree--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server/extension/ltree/'
/usr/bin/install -c -m 644   ./ltree.h '/u01/app/postgres/13.3/include/server/extension/ltree/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/ltree'
make -C oid2name install
make[1]: Entering directory `/root/postgresql-13.3/contrib/oid2name'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  oid2name '/u01/app/postgres/13.3/bin'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/oid2name'
make -C pageinspect install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pageinspect'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pageinspect.so '/u01/app/postgres/13.3/lib/pageinspect.so'
/usr/bin/install -c -m 644 ./pageinspect.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pageinspect--1.7--1.8.sql ./pageinspect--1.6--1.7.sql ./pageinspect--1.5.sql ./pageinspect--1.5--1.6.sql ./pageinspect--1.4--1.5.sql ./pageinspect--1.3--1.4.sql ./pageinspect--1.2--1.3.sql ./pageinspect--1.1--1.2.sql ./pageinspect--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pageinspect'
make -C passwordcheck install
make[1]: Entering directory `/root/postgresql-13.3/contrib/passwordcheck'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  passwordcheck.so '/u01/app/postgres/13.3/lib/passwordcheck.so'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/passwordcheck'
make -C pg_buffercache install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_buffercache'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_buffercache.so '/u01/app/postgres/13.3/lib/pg_buffercache.so'
/usr/bin/install -c -m 644 ./pg_buffercache.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_buffercache--1.2.sql ./pg_buffercache--1.2--1.3.sql ./pg_buffercache--1.1--1.2.sql ./pg_buffercache--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_buffercache'
make -C pg_freespacemap install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_freespacemap'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_freespacemap.so '/u01/app/postgres/13.3/lib/pg_freespacemap.so'
/usr/bin/install -c -m 644 ./pg_freespacemap.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_freespacemap--1.1.sql ./pg_freespacemap--1.1--1.2.sql ./pg_freespacemap--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_freespacemap'
make -C pg_prewarm install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_prewarm'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_prewarm.so '/u01/app/postgres/13.3/lib/pg_prewarm.so'
/usr/bin/install -c -m 644 ./pg_prewarm.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_prewarm--1.1--1.2.sql ./pg_prewarm--1.1.sql ./pg_prewarm--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_prewarm'
make -C pg_standby install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_standby'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  pg_standby '/u01/app/postgres/13.3/bin'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_standby'
make -C pg_stat_statements install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_stat_statements'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_stat_statements.so '/u01/app/postgres/13.3/lib/pg_stat_statements.so'
/usr/bin/install -c -m 644 ./pg_stat_statements.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_stat_statements--1.4.sql ./pg_stat_statements--1.7--1.8.sql ./pg_stat_statements--1.6--1.7.sql ./pg_stat_statements--1.5--1.6.sql ./pg_stat_statements--1.4--1.5.sql ./pg_stat_statements--1.3--1.4.sql ./pg_stat_statements--1.2--1.3.sql ./pg_stat_statements--1.1--1.2.sql ./pg_stat_statements--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_stat_statements'
make -C pg_trgm install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_trgm'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_trgm.so '/u01/app/postgres/13.3/lib/pg_trgm.so'
/usr/bin/install -c -m 644 ./pg_trgm.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_trgm--1.4--1.5.sql ./pg_trgm--1.3--1.4.sql ./pg_trgm--1.3.sql ./pg_trgm--1.2--1.3.sql ./pg_trgm--1.1--1.2.sql ./pg_trgm--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_trgm'
make -C pgcrypto install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pgcrypto'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pgcrypto.so '/u01/app/postgres/13.3/lib/pgcrypto.so'
/usr/bin/install -c -m 644 ./pgcrypto.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pgcrypto--1.3.sql ./pgcrypto--1.2--1.3.sql ./pgcrypto--1.1--1.2.sql ./pgcrypto--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pgcrypto'
make -C pgrowlocks install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pgrowlocks'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pgrowlocks.so '/u01/app/postgres/13.3/lib/pgrowlocks.so'
/usr/bin/install -c -m 644 ./pgrowlocks.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pgrowlocks--1.2.sql ./pgrowlocks--1.1--1.2.sql ./pgrowlocks--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pgrowlocks'
make -C pgstattuple install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pgstattuple'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pgstattuple.so '/u01/app/postgres/13.3/lib/pgstattuple.so'
/usr/bin/install -c -m 644 ./pgstattuple.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pgstattuple--1.4.sql ./pgstattuple--1.4--1.5.sql ./pgstattuple--1.3--1.4.sql ./pgstattuple--1.2--1.3.sql ./pgstattuple--1.1--1.2.sql ./pgstattuple--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pgstattuple'
make -C pg_visibility install
make[1]: Entering directory `/root/postgresql-13.3/contrib/pg_visibility'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  pg_visibility.so '/u01/app/postgres/13.3/lib/pg_visibility.so'
/usr/bin/install -c -m 644 ./pg_visibility.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./pg_visibility--1.1.sql ./pg_visibility--1.1--1.2.sql ./pg_visibility--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/pg_visibility'
make -C postgres_fdw install
make[1]: Entering directory `/root/postgresql-13.3/contrib/postgres_fdw'
make -C ../../src/interfaces/libpq all
make[2]: Entering directory `/root/postgresql-13.3/src/interfaces/libpq'
make -C ../../../src/port all
make[3]: Entering directory `/root/postgresql-13.3/src/port'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/port'
make -C ../../../src/common all
make[3]: Entering directory `/root/postgresql-13.3/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/postgresql-13.3/src/common'
make[2]: Leaving directory `/root/postgresql-13.3/src/interfaces/libpq'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  postgres_fdw.so '/u01/app/postgres/13.3/lib/postgres_fdw.so'
/usr/bin/install -c -m 644 ./postgres_fdw.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./postgres_fdw--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/postgres_fdw'
make -C seg install
make[1]: Entering directory `/root/postgresql-13.3/contrib/seg'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  seg.so '/u01/app/postgres/13.3/lib/seg.so'
/usr/bin/install -c -m 644 ./seg.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./seg--1.1.sql ./seg--1.1--1.2.sql ./seg--1.2--1.3.sql ./seg--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/include/server/extension/seg/'
/usr/bin/install -c -m 644   ./segdata.h '/u01/app/postgres/13.3/include/server/extension/seg/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/seg'
make -C spi install
make[1]: Entering directory `/root/postgresql-13.3/contrib/spi'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/doc//extension'
/usr/bin/install -c -m 644 ./autoinc.control ./insert_username.control ./moddatetime.control ./refint.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./autoinc--1.0.sql ./insert_username--1.0.sql ./moddatetime--1.0.sql ./refint--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  autoinc.so insert_username.so moddatetime.so refint.so '/u01/app/postgres/13.3/lib/'
/usr/bin/install -c -m 644 ./autoinc.example ./insert_username.example ./moddatetime.example ./refint.example '/u01/app/postgres/13.3/share/doc//extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/spi'
make -C tablefunc install
make[1]: Entering directory `/root/postgresql-13.3/contrib/tablefunc'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./tablefunc.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./tablefunc--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  tablefunc.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/tablefunc'
make -C tcn install
make[1]: Entering directory `/root/postgresql-13.3/contrib/tcn'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 644 ./tcn.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./tcn--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 755  tcn.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/tcn'
make -C test_decoding install
make[1]: Entering directory `/root/postgresql-13.3/contrib/test_decoding'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/install -c -m 755  test_decoding.so '/u01/app/postgres/13.3/lib/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/test_decoding'
make -C tsm_system_rows install
make[1]: Entering directory `/root/postgresql-13.3/contrib/tsm_system_rows'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  tsm_system_rows.so '/u01/app/postgres/13.3/lib/tsm_system_rows.so'
/usr/bin/install -c -m 644 ./tsm_system_rows.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./tsm_system_rows--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/tsm_system_rows'
make -C tsm_system_time install
make[1]: Entering directory `/root/postgresql-13.3/contrib/tsm_system_time'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/install -c -m 755  tsm_system_time.so '/u01/app/postgres/13.3/lib/tsm_system_time.so'
/usr/bin/install -c -m 644 ./tsm_system_time.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./tsm_system_time--1.0.sql  '/u01/app/postgres/13.3/share/extension/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/tsm_system_time'
make -C unaccent install
make[1]: Entering directory `/root/postgresql-13.3/contrib/unaccent'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/lib'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/extension'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/share/tsearch_data'
/usr/bin/install -c -m 755  unaccent.so '/u01/app/postgres/13.3/lib/unaccent.so'
/usr/bin/install -c -m 644 ./unaccent.control '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./unaccent--1.1.sql ./unaccent--1.0--1.1.sql  '/u01/app/postgres/13.3/share/extension/'
/usr/bin/install -c -m 644 ./unaccent.rules '/u01/app/postgres/13.3/share/tsearch_data/'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/unaccent'
make -C vacuumlo install
make[1]: Entering directory `/root/postgresql-13.3/contrib/vacuumlo'
/usr/bin/mkdir -p '/u01/app/postgres/13.3/bin'
/usr/bin/install -c  vacuumlo '/u01/app/postgres/13.3/bin'
make[1]: Leaving directory `/root/postgresql-13.3/contrib/vacuumlo'
[root@pcs1 contrib]#


11. Validation

[root@pcs1 ~]# cd /u01/app/postgres/13.3/bin/
[root@pcs1 bin]# ls -ltr
total 12760
-rwxr-xr-x. 1 root root 8289176 Dec 23 01:01 postgres
lrwxrwxrwx. 1 root root       8 Dec 23 01:01 postmaster -> postgres
-rwxr-xr-x. 1 root root  972200 Dec 23 01:01 ecpg
-rwxr-xr-x. 1 root root  142688 Dec 23 01:01 initdb
-rwxr-xr-x. 1 root root   48696 Dec 23 01:01 pg_archivecleanup
-rwxr-xr-x. 1 root root  131440 Dec 23 01:01 pg_basebackup
-rwxr-xr-x. 1 root root   93464 Dec 23 01:01 pg_receivewal
-rwxr-xr-x. 1 root root   94040 Dec 23 01:01 pg_recvlogical
-rwxr-xr-x. 1 root root   67240 Dec 23 01:01 pg_checksums
-rwxr-xr-x. 1 root root   43136 Dec 23 01:01 pg_config
-rwxr-xr-x. 1 root root   61632 Dec 23 01:01 pg_controldata
-rwxr-xr-x. 1 root root   77280 Dec 23 01:01 pg_ctl
-rwxr-xr-x. 1 root root  431760 Dec 23 01:01 pg_dump
-rwxr-xr-x. 1 root root  192456 Dec 23 01:01 pg_restore
-rwxr-xr-x. 1 root root  114352 Dec 23 01:01 pg_dumpall
-rwxr-xr-x. 1 root root   71696 Dec 23 01:01 pg_resetwal
-rwxr-xr-x. 1 root root  138560 Dec 23 01:01 pg_rewind
-rwxr-xr-x. 1 root root   49424 Dec 23 01:01 pg_test_fsync
-rwxr-xr-x. 1 root root   43504 Dec 23 01:01 pg_test_timing
-rwxr-xr-x. 1 root root  154184 Dec 23 01:01 pg_upgrade
-rwxr-xr-x. 1 root root  109792 Dec 23 01:01 pg_verifybackup
-rwxr-xr-x. 1 root root  108760 Dec 23 01:01 pg_waldump
-rwxr-xr-x. 1 root root  174008 Dec 23 01:01 pgbench
-rwxr-xr-x. 1 root root  630160 Dec 23 01:01 psql
-rwxr-xr-x. 1 root root   82840 Dec 23 01:01 createdb
-rwxr-xr-x. 1 root root   73680 Dec 23 01:01 dropdb
-rwxr-xr-x. 1 root root   79088 Dec 23 01:01 createuser
-rwxr-xr-x. 1 root root   73616 Dec 23 01:01 dropuser
-rwxr-xr-x. 1 root root   78584 Dec 23 01:01 clusterdb
-rwxr-xr-x. 1 root root   87648 Dec 23 01:01 vacuumdb
-rwxr-xr-x. 1 root root   83432 Dec 23 01:01 reindexdb
-rwxr-xr-x. 1 root root   73664 Dec 23 01:01 pg_isready
-rwxr-xr-x. 1 root root   48776 Dec 23 01:15 oid2name
-rwxr-xr-x. 1 root root   43720 Dec 23 01:15 pg_standby
-rwxr-xr-x. 1 root root   48488 Dec 23 01:15 vacuumlo
[root@pcs1 bin]# ./pg_config
BINDIR = /u01/app/postgres/13.3/bin
DOCDIR = /u01/app/postgres/13.3/share/doc
HTMLDIR = /u01/app/postgres/13.3/share/doc
INCLUDEDIR = /u01/app/postgres/13.3/include
PKGINCLUDEDIR = /u01/app/postgres/13.3/include
INCLUDEDIR-SERVER = /u01/app/postgres/13.3/include/server
LIBDIR = /u01/app/postgres/13.3/lib
PKGLIBDIR = /u01/app/postgres/13.3/lib
LOCALEDIR = /u01/app/postgres/13.3/share/locale
MANDIR = /u01/app/postgres/13.3/share/man
SHAREDIR = /u01/app/postgres/13.3/share
SYSCONFDIR = /u01/app/postgres/13.3/etc
PGXS = /u01/app/postgres/13.3/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE =  '--prefix=/u01/app/postgres/13.3' '--with-pgport=5432'
CC = gcc -std=gnu99
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -Wl,-rpath,'/u01/app/postgres/13.3/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lz -lreadline -lrt -ldl -lm
VERSION = PostgreSQL 13.3
[root@pcs1 bin]#

pg_config utility working fine.


12. Change binary owner to postgres

[root@pcs1 ~]# chown -R postgres:postgres /u02/app/psql/13.3/DATA
[root@pcs1 ~]# chown -R postgres:postgres /u01/app/postgres


13. Initialize postgreSQL data directory using postgres user

[root@pcs1 13.3]# su - postgres
[postgres@pcs1 ~]$
[postgres@pcs1 ~]$
[postgres@pcs1 ~]$ ps -ef | grep postgres
root      3098  1810  0 01:59 pts/1    00:00:00 su - postgres
postgres  3101  3098  0 01:59 pts/1    00:00:00 -bash
postgres  3183  3101  0 01:59 pts/1    00:00:00 ps -ef
postgres  3184  3101  0 01:59 pts/1    00:00:00 grep --color=auto postgres
[postgres@pcs1 ~]$
[postgres@pcs1 ~]$ /u01/app/postgres/13.3/bin/initdb -D /u02/app/psql/13.3/DATA
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /u02/app/psql/13.3/DATA ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Asia/Singapore
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /u01/app/postgres/13.3/bin/pg_ctl -D /u02/app/psql/13.3/DATA -l logfile start

[postgres@pcs1 ~]$


14. Validate the postgreSQL data directory

[postgres@pcs1 postgres]$ cd /u02/app/psql/13.3/DATA/
[postgres@pcs1 DATA]$ ls -ltr
total 124
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_twophase
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_snapshots
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_serial
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_replslot
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_notify
drwx------. 4 postgres postgres  4096 Dec 23 01:59 pg_multixact
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_dynshmem
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_commit_ts
-rw-------. 1 postgres postgres     3 Dec 23 01:59 PG_VERSION
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_tblspc
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_stat
-rw-------. 1 postgres postgres 28025 Dec 23 01:59 postgresql.conf
-rw-------. 1 postgres postgres    88 Dec 23 01:59 postgresql.auto.conf
-rw-------. 1 postgres postgres  4760 Dec 23 01:59 pg_hba.conf
-rw-------. 1 postgres postgres  1636 Dec 23 01:59 pg_ident.conf
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_xact
drwx------. 3 postgres postgres  4096 Dec 23 01:59 pg_wal
drwx------. 2 postgres postgres  4096 Dec 23 01:59 pg_subtrans
drwx------. 2 postgres postgres  4096 Dec 23 01:59 global
drwx------. 5 postgres postgres  4096 Dec 23 01:59 base
-rw-------. 1 postgres postgres    67 Dec 23 02:05 postmaster.opts
-rw-------. 1 postgres postgres    89 Dec 23 02:05 postmaster.pid
drwx------. 4 postgres postgres  4096 Dec 23 02:10 pg_logical
drwx------. 2 postgres postgres  4096 Dec 23 03:21 pg_stat_tmp
[postgres@pcs1 DATA]$


15. Start postgreSQL database as postgres user

[postgres@pcs1 ~]$ /u01/app/postgres/13.3/bin/pg_ctl -D /u02/app/psql/13.3/DATA status
pg_ctl: no server running
[postgres@pcs1 ~]$
[postgres@pcs1 ~]$ /u01/app/postgres/13.3/bin/pg_ctl -D /u02/app/psql/13.3/DATA start
waiting for server to start....2021-12-23 02:05:49.529 +08 [3695] LOG:  starting PostgreSQL 13.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44.0.3), 64-bit
2021-12-23 02:05:49.532 +08 [3695] LOG:  listening on IPv6 address "::1", port 5432
2021-12-23 02:05:49.532 +08 [3695] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2021-12-23 02:05:49.537 +08 [3695] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2021-12-23 02:05:49.543 +08 [3696] LOG:  database system was shut down at 2021-12-23 01:59:40 +08
2021-12-23 02:05:49.548 +08 [3695] LOG:  database system is ready to accept connections
 done
server started
[postgres@pcs1 ~]$
[postgres@pcs1 ~]$ /u01/app/postgres/13.3/bin/pg_ctl -D /u02/app/psql/13.3/DATA status
pg_ctl: server is running (PID: 3695)
/u01/app/postgres/13.3/bin/postgres "-D" "/u02/app/psql/13.3/DATA"
[postgres@pcs1 ~]$

[postgres@pcs1 ~]$ ps -ef | grep postgres
root      3098  1810  0 01:59 pts/1    00:00:00 su - postgres
postgres  3101  3098  0 01:59 pts/1    00:00:00 -bash
postgres  3695     1  0 02:05 ?        00:00:00 /u01/app/postgres/13.3/bin/postgres -D /u02/app/psql/13.3/DATA
postgres  3697  3695  0 02:05 ?        00:00:00 postgres: checkpointer
postgres  3698  3695  0 02:05 ?        00:00:00 postgres: background writer
postgres  3699  3695  0 02:05 ?        00:00:00 postgres: walwriter
postgres  3700  3695  0 02:05 ?        00:00:00 postgres: autovacuum launcher
postgres  3701  3695  0 02:05 ?        00:00:00 postgres: stats collector
postgres  3702  3695  0 02:05 ?        00:00:00 postgres: logical replication launcher
postgres  3768  3101  0 02:06 pts/1    00:00:00 ps -ef
postgres  3769  3101  0 02:06 pts/1    00:00:00 grep --color=auto postgres
[postgres@pcs1 ~]$


16. Setting the postgres User Environment Variables

[postgres@pcs1 ~]$ psql
bash: psql: command not found...
[postgres@pcs1 ~]$ 

cat pg.env

export LD_LIBRARY_PATH=/u01/app/postgres/13.3/lib:$LD_LIBRARY_PATH
export PATH=/u01/app/postgres/13.3/bin:$PATH

[postgres@pcs1 ~]$ . pg.env
[postgres@pcs1 ~]$ 
[postgres@pcs1 ~]$ psql
psql (13.3)
Type "help" for help.

postgres=#


17. Create postgreSQL DB and test the installation

[postgres@pcs1 ~]$ psql
psql (13.3)
Type "help" for help.

postgres=# \l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(3 rows)

postgres=#
postgres=# create database test;
CREATE DATABASE
postgres=#
postgres=# \l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 test      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
(4 rows)

postgres=#

Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Thank you,
Rajasekhar Amudala
Email: br8dba@gmail.com
WhatsApp : +65-94693551
Linkedin: https://www.linkedin.com/in/rajasekhar-amudala/

PostgreSQL DBA – How to Create Database in PostgreSQL?

PostgreSQL DBA – How to Create Database in PostgreSQL?

Table of Contents
___________________________________________________________________________________________________

0. How to Find Create Database Syntax in PostgreSQL?
1. How to List All Databases in PostgreSQL using psql?
2. How To Create New Database in PostgreSQL using psql?
3. How To Create New Database With Owner in PostgreSQL using psql?
4. How To Create New Database With Tablespace in PostgreSQL using psql?
5. How To Create New Database With Encoding in PostgreSQL using psql?
6. How To Create New Database With Template in PostgreSQL using psql?
7. How to Create New Database With Binary Owner in PostgreSQL using Command Line?
8. How to Connect to Database in PostgreSQL using psql?
9. How to Find the Version of Database in PostgreSQL?
10. How to Exit from PostgreSQL?
___________________________________________________________________________________________________


0. How to Find Create Database Syntax in PostgreSQL?

[postgres@rac1 ~]$ psql
psql (13.2)
Type "help" for help.

postgres=# \h CREATE DATABASE
Command:     CREATE DATABASE
Description: create a new database
Syntax:
CREATE DATABASE name
    [ [ WITH ] [ OWNER [=] user_name ]
           [ TEMPLATE [=] template ]
           [ ENCODING [=] encoding ]
           [ LOCALE [=] locale ]
           [ LC_COLLATE [=] lc_collate ]
           [ LC_CTYPE [=] lc_ctype ]
           [ TABLESPACE [=] tablespace_name ]
           [ ALLOW_CONNECTIONS [=] allowconn ]
           [ CONNECTION LIMIT [=] connlimit ]
           [ IS_TEMPLATE [=] istemplate ] ]

URL: https://www.postgresql.org/docs/13/sql-createdatabase.html

postgres=#


1. How to List All Databases in PostgreSQL using psql?

postgres=# \l+
                                                                    List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   |  Size   | Tablespace |                Description
-----------+----------+----------+-------------+-------------+-----------------------+---------+------------+--------------------------------------------
 orcl      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                       | 8117 kB | pg_default |
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                       | 8117 kB | pg_default | default administrative connection database
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +| 7969 kB | pg_default | unmodifiable empty database
           |          |          |             |             | postgres=CTc/postgres |         |            |
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +| 7969 kB | pg_default | default template for new databases
           |          |          |             |             | postgres=CTc/postgres |         |            |
(4 rows)

postgres=#

postgres=# select oid,datname from pg_database;
  oid  |  datname
-------+-----------
 14172 | postgres
 16384 | orcl
     1 | template1
 14171 | template0
(4 rows)

postgres=#


select * from pg_database;


2. How To Create New database in PostgreSQL using psql?

postgres=# create database test;
CREATE DATABASE
postgres=#
postgres=# SELECT (pg_stat_file('base/'||oid ||'/PG_VERSION')).modification, datname FROM pg_database where datname='test';
      modification      | datname
------------------------+---------
 2021-03-15 21:30:27+08 | test <----
(1 row)

postgres=#


3. How To Create New database With Owner in PostgreSQL using psql?

postgres=# create user vishnu with password 'vishnu';
CREATE ROLE
postgres=# CREATE DATABASE test2 OWNER vishnu;
CREATE DATABASE
postgres=#
postgres=# \l+ test2
                                               List of databases
 Name  | Owner  | Encoding |   Collate   |    Ctype    | Access privileges |  Size   | Tablespace | Description
-------+--------+----------+-------------+-------------+-------------------+---------+------------+-------------
 test2 | vishnu | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                   | 7969 kB | pg_default |
(1 row)

postgres=#


4. How To Create New database With Tablespace in PostgreSQL using psql?

[root@rac1 ~]# mkdir -p /u01/postgres/data/test3_tbs
[root@rac1 ~]# chown -R postgres:postgres /u01/postgres
[root@rac1 ~]# chmod -R 750 /u01/postgres

postgres=# CREATE TABLESPACE test3_tbs LOCATION '/u01/postgres/data/test3_tbs';
CREATE TABLESPACE
postgres=#

postgres=# CREATE DATABASE test3 TABLESPACE test3_tbs;
CREATE DATABASE
postgres=# select datname from pg_database where datname='test3';
 datname
---------
 test3 <----
(1 row)

postgres=#


5. How To Create New database With Encoding in PostgreSQL using psql?

postgres=# CREATE DATABASE test4 ENCODING 'UTF8';
CREATE DATABASE
postgres=#
postgres=# \l+ test4
                                                List of databases
 Name  |  Owner   | Encoding |   Collate   |    Ctype    | Access privileges |  Size   | Tablespace | Description
-------+----------+----------+-------------+-------------+-------------------+---------+------------+-------------
 test4 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                   | 7969 kB | pg_default |
(1 row)

postgres=#


6. How To Create New database With Template in PostgreSQL using psql?

postgres=# \l+ template1
                                                                List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   |  Size   | Tablespace |            Description
-----------+----------+----------+-------------+-------------+-----------------------+---------+------------+------------------------------------
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +| 7969 kB | pg_default | default template for new databases
           |          |          |             |             | postgres=CTc/postgres |         |            |
(1 row)

postgres=#

postgres=# CREATE DATABASE test5 TEMPLATE template1;
CREATE DATABASE
postgres=#
postgres=# \l+ test5
                                                List of databases
 Name  |  Owner   | Encoding |   Collate   |    Ctype    | Access privileges |  Size   | Tablespace | Description
-------+----------+----------+-------------+-------------+-------------------+---------+------------+-------------
 test5 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                   | 7969 kB | pg_default |
(1 row)

postgres=#


7. How to Create New Database With Binary Owner in PostgreSQL using Command Line?

[postgres@rac1 ~]$ id
uid=26(postgres) gid=26(postgres) groups=26(postgres) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[postgres@rac1 ~]$
[postgres@rac1 ~]$ which createdb
/bin/createdb
[postgres@rac1 ~]$
[postgres@rac1 ~]$ createdb test6
[postgres@rac1 ~]$

postgres=# \l+ test6
                                                List of databases
 Name  |  Owner   | Encoding |   Collate   |    Ctype    | Access privileges |  Size   | Tablespace | Description
-------+----------+----------+-------------+-------------+-------------------+---------+------------+-------------
 test6 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |                   | 7969 kB | pg_default |
(1 row)

postgres=#


8. How to Connect to Database in PostgreSQL using psql?

[postgres@rac1 ~]$ id
uid=26(postgres) gid=26(postgres) groups=26(postgres) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[postgres@rac1 ~]$ psql
psql (13.2)
Type "help" for help.

postgres=#
postgres=#  SELECT current_database();
 current_database
------------------
 postgres <-----
(1 row)

postgres=#
postgres=# \c test2    <---- to connect to selective database
You are now connected to database "test2" as user "postgres".
test2=#
test2=# SELECT current_database();
 current_database
------------------
 test2 <----
(1 row)

test2=#

--- OR ---

[postgres@rac1 ~]$ psql orcl
psql (13.2)
Type "help" for help.

orcl=#  <---- Now we connected to database "orcl"


9. How to Find the Version of Database in PostgreSQL using psql?

test2=# select version();
                                                 version
---------------------------------------------------------------------------------------------------------
 PostgreSQL 13.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
(1 row)

test2=#

-- OR --

[postgres@rac1 ~]$ psql
psql (13.2)  <-----
Type "help" for help.

postgres=#


10. How to Exit from PostgreSQL?

test2=# \q  <---- To quit from Postgres prompt.
[postgres@rac1 ~]$

Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Thank you,
Rajasekhar Amudala
Email: br8dba@gmail.com
Linkedin: https://www.linkedin.com/in/rajasekhar-amudala/

PostgreSQL DBA – How to START/STOP PostgreSQL 13 ON RHEL 7

How to START/STOP PostgreSQL 13 ON RHEL 7

Table of Contents
___________________________________________________________________________________________________

0. Overview
1. How to check Postgres server status?
2. How to Stop Postgres server?
3. How to Start Postgres server?
4. How to Restart Postgres server?
5. How to Reload Postgres server?
___________________________________________________________________________________________________


0. Overview

As root user:

service postgresql-13.service status
service postgresql-13.service start
service postgresql-13.service restart
service postgresql-13.service reload
service postgresql-13.service stop

OR 

systemctl stop postgresql-13.service
systemctl start postgresql-13.service
systemctl restart postgresql-13.service
systemctl status postgresql-13.service
systemctl reload postgresql-13.service

As Postgres user use pg_ctl command

/usr/pgsql-13/bin/pg_ctl stop -D /var/lib/pgsql/13/data
/usr/pgsql-13/bin/pg_ctl start -D /var/lib/pgsql/13/data
/usr/pgsql-13/bin/pg_ctl restart -D /var/lib/pgsql/13/data
/usr/pgsql-13/bin/pg_ctl status -D /var/lib/pgsql/13/data
/usr/pgsql-13/bin/pg_ctl reload -D /var/lib/pgsql/13/data

Restart or reload is required when changes are made to the postgresql.conf file.

Reload simply reloads the configuration in-memory. Restart replaces the entire instance.


1. How to check Postgres server status?

[root@rac1 ~]# systemctl list-units|grep postgresql
  postgresql-13.service     loaded active running   PostgreSQL 13 database server
[root@rac1 ~]# 

---- OR -----

[root@rac1 ~]# service postgresql-13.service status
Redirecting to /bin/systemctl status postgresql-13.service
● postgresql-13.service - PostgreSQL 13 database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql-13.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2021-03-15 17:57:05 +08; 53min ago
     Docs: https://www.postgresql.org/docs/13/static/
  Process: 969 ExecStartPre=/usr/pgsql-13/bin/postgresql-13-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
 Main PID: 991 (postmaster)
   CGroup: /system.slice/postgresql-13.service
           ├─ 991 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/
           ├─1053 postgres: logger
           ├─1178 postgres: checkpointer
           ├─1179 postgres: background writer
           ├─1180 postgres: walwriter
           ├─1181 postgres: autovacuum launcher
           ├─1182 postgres: stats collector
           ├─1183 postgres: logical replication launcher
           └─2282 postgres: postgres postgres [local] idle

Mar 15 17:57:03 rac1.rajasekhar.com systemd[1]: Starting PostgreSQL 13 database server...
Mar 15 17:57:04 rac1.rajasekhar.com postmaster[991]: 2021-03-15 17:57:04.155 +08 [991] LOG:  redirecting log output to logging collector process
Mar 15 17:57:04 rac1.rajasekhar.com postmaster[991]: 2021-03-15 17:57:04.155 +08 [991] HINT:  Future log output will appear in directory "log".
Mar 15 17:57:05 rac1.rajasekhar.com systemd[1]: Started PostgreSQL 13 database server.
[root@rac1 ~]#

--- OR ---

[root@rac1 ~]# ps -ef | grep postgres
postgres   991     1  0 17:57 ?        00:00:00 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/
postgres  1053   991  0 17:57 ?        00:00:00 postgres: logger
postgres  1178   991  0 17:57 ?        00:00:00 postgres: checkpointer
postgres  1179   991  0 17:57 ?        00:00:00 postgres: background writer
postgres  1180   991  0 17:57 ?        00:00:00 postgres: walwriter
postgres  1181   991  0 17:57 ?        00:00:00 postgres: autovacuum launcher
postgres  1182   991  0 17:57 ?        00:00:00 postgres: stats collector
postgres  1183   991  0 17:57 ?        00:00:00 postgres: logical replication launcher
root      2201  2143  0 17:58 pts/0    00:00:00 su - postgres
postgres  2202  2201  0 17:58 pts/0    00:00:00 -bash
postgres  2281  2202  0 17:58 pts/0    00:00:00 psql
postgres  2282   991  0 17:58 ?        00:00:00 postgres: postgres postgres [local] idle
root      5744  5275  0 18:55 pts/1    00:00:00 grep --color=auto postgres
[root@rac1 ~]#

OR

[postgres@rac1 ~]$ cd /usr/pgsql-13/bin/
[postgres@rac1 bin]$ ./pg_ctl status -D /var/lib/pgsql/13/data/
pg_ctl: server is running (PID: 991)
/usr/pgsql-13/bin/postgres "-D" "/var/lib/pgsql/13/data/"
[postgres@rac1 bin]$


2. How to Stop Postgres server?

[postgres@rac1 ~]$ cd /usr/pgsql-13/bin/
[postgres@rac1 bin]$ ./pg_ctl stop -D /var/lib/pgsql/13/data/
waiting for server to shut down.... done
server stopped
[postgres@rac1 bin]$

[root@rac1 ~]# ps -ef | grep postgres
root      6718  2143  0 19:07 pts/0    00:00:00 grep --color=auto postgres
[root@rac1 ~]#

--- OR ----

[root@rac1 ~]# service postgresql-13.service stop
Redirecting to /bin/systemctl stop postgresql-13.service
[root@rac1 ~]#
[root@rac1 ~]# service postgresql-13.service status
Redirecting to /bin/systemctl status postgresql-13.service
● postgresql-13.service - PostgreSQL 13 database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql-13.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Mon 2021-03-15 19:07:03 +08; 5min ago
     Docs: https://www.postgresql.org/docs/13/static/
  Process: 991 ExecStart=/usr/pgsql-13/bin/postmaster -D ${PGDATA} (code=exited, status=0/SUCCESS)
  Process: 969 ExecStartPre=/usr/pgsql-13/bin/postgresql-13-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
 Main PID: 991 (code=exited, status=0/SUCCESS)

Mar 15 17:57:03 rac1.rajasekhar.com systemd[1]: Starting PostgreSQL 13 database server...
Mar 15 17:57:04 rac1.rajasekhar.com postmaster[991]: 2021-03-15 17:57:04.155 +08 [991] LOG:  redirecting log output to logging collector process
Mar 15 17:57:04 rac1.rajasekhar.com postmaster[991]: 2021-03-15 17:57:04.155 +08 [991] HINT:  Future log output will appear in directory "log".
Mar 15 17:57:05 rac1.rajasekhar.com systemd[1]: Started PostgreSQL 13 database server.
[root@rac1 ~]#


3. How to Start Postgres server?

[postgres@rac1 ~]$ cd /usr/pgsql-13/bin/
[postgres@rac1 bin]$ ./pg_ctl start -D /var/lib/pgsql/13/data/
waiting for server to start....2021-03-15 19:14:17.815 +08 [7443] LOG:  redirecting log output to logging collector process
2021-03-15 19:14:17.815 +08 [7443] HINT:  Future log output will appear in directory "log".
 done
server started
[postgres@rac1 bin]$

--- OR ---- 

[root@rac1 ~]# service postgresql-13.service start
Redirecting to /bin/systemctl start postgresql-13.service
[root@rac1 ~]#
[root@rac1 ~]# service postgresql-13.service status
Redirecting to /bin/systemctl status postgresql-13.service
● postgresql-13.service - PostgreSQL 13 database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql-13.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2021-03-15 19:15:14 +08; 3s ago
     Docs: https://www.postgresql.org/docs/13/static/
  Process: 7523 ExecStartPre=/usr/pgsql-13/bin/postgresql-13-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
 Main PID: 7529 (postmaster)
   CGroup: /system.slice/postgresql-13.service
           ├─7529 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/
           ├─7533 postgres: logger
           ├─7535 postgres: checkpointer
           ├─7536 postgres: background writer
           ├─7537 postgres: walwriter
           ├─7538 postgres: autovacuum launcher
           ├─7539 postgres: stats collector
           └─7540 postgres: logical replication launcher

Mar 15 19:15:14 rac1.rajasekhar.com systemd[1]: Starting PostgreSQL 13 database server...
Mar 15 19:15:14 rac1.rajasekhar.com postmaster[7529]: 2021-03-15 19:15:14.193 +08 [7529] LOG:  redirecting log output to logging collector process
Mar 15 19:15:14 rac1.rajasekhar.com postmaster[7529]: 2021-03-15 19:15:14.193 +08 [7529] HINT:  Future log output will appear in directory "log".
Mar 15 19:15:14 rac1.rajasekhar.com systemd[1]: Started PostgreSQL 13 database server.
[root@rac1 ~]#


4. How to Restart Postgres server?

-w, --wait             wait until operation completes (default)
  
[postgres@rac1 ~]$ cd /usr/pgsql-13/bin/
[postgres@rac1 bin]$ ./pg_ctl -w restart -D /var/lib/pgsql/13/data/
waiting for server to shut down.... done
server stopped
waiting for server to start....2021-03-15 19:22:58.920 +08 [8017] LOG:  redirecting log output to logging collector process
2021-03-15 19:22:58.920 +08 [8017] HINT:  Future log output will appear in directory "log".
 done
server started
[postgres@rac1 bin]$

--- OR ----

[root@rac1 ~]# service postgresql-13.service restart
Redirecting to /bin/systemctl restart postgresql-13.service
[root@rac1 ~]#
[root@rac1 ~]# service postgresql-13.service status
Redirecting to /bin/systemctl status postgresql-13.service
● postgresql-13.service - PostgreSQL 13 database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql-13.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2021-03-15 19:52:26 +08; 3s ago
     Docs: https://www.postgresql.org/docs/13/static/
  Process: 10439 ExecStartPre=/usr/pgsql-13/bin/postgresql-13-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
 Main PID: 10445 (postmaster)
   CGroup: /system.slice/postgresql-13.service
           ├─10445 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/
           ├─10449 postgres: logger
           ├─10451 postgres: checkpointer
           ├─10452 postgres: background writer
           ├─10453 postgres: walwriter
           ├─10454 postgres: autovacuum launcher
           ├─10455 postgres: stats collector
           └─10456 postgres: logical replication launcher

Mar 15 19:52:26 rac1.rajasekhar.com systemd[1]: Starting PostgreSQL 13 database server...
Mar 15 19:52:26 rac1.rajasekhar.com postmaster[10445]: 2021-03-15 19:52:26.856 +08 [10445] LOG:  redirecting log output to logging collector process
Mar 15 19:52:26 rac1.rajasekhar.com postmaster[10445]: 2021-03-15 19:52:26.856 +08 [10445] HINT:  Future log output will appear in directory "log".
Mar 15 19:52:26 rac1.rajasekhar.com systemd[1]: Started PostgreSQL 13 database server.
[root@rac1 ~]#


5. How to Reload Postgres server?

[postgres@rac1 bin]$ ./pg_ctl reload -D /var/lib/pgsql/13/data
server signaled
[postgres@rac1 bin]$

--- OR --- 

[root@rac1 ~]# service postgresql-13.service reload
Redirecting to /bin/systemctl reload postgresql-13.service
[root@rac1 ~]#
[root@rac1 ~]# service postgresql-13.service status
Redirecting to /bin/systemctl status postgresql-13.service
● postgresql-13.service - PostgreSQL 13 database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql-13.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2021-03-15 19:52:26 +08; 11min ago
     Docs: https://www.postgresql.org/docs/13/static/
  Process: 11218 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 10439 ExecStartPre=/usr/pgsql-13/bin/postgresql-13-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
 Main PID: 10445 (postmaster)
   CGroup: /system.slice/postgresql-13.service
           ├─10445 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/
           ├─10449 postgres: logger
           ├─10451 postgres: checkpointer
           ├─10452 postgres: background writer
           ├─10453 postgres: walwriter
           ├─10454 postgres: autovacuum launcher
           ├─10455 postgres: stats collector
           └─10456 postgres: logical replication launcher

Mar 15 19:52:26 rac1.rajasekhar.com systemd[1]: Starting PostgreSQL 13 database server...
Mar 15 19:52:26 rac1.rajasekhar.com postmaster[10445]: 2021-03-15 19:52:26.856 +08 [10445] LOG:  redirecting log output to logging collector process
Mar 15 19:52:26 rac1.rajasekhar.com postmaster[10445]: 2021-03-15 19:52:26.856 +08 [10445] HINT:  Future log output will appear in directory "log".
Mar 15 19:52:26 rac1.rajasekhar.com systemd[1]: Started PostgreSQL 13 database server.
Mar 15 19:53:40 rac1.rajasekhar.com systemd[1]: Reloaded PostgreSQL 13 database server.
Mar 15 20:03:49 rac1.rajasekhar.com systemd[1]: Reloaded PostgreSQL 13 database server.
[root@rac1 ~]#

Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Thank you,
Rajasekhar Amudala
Email: br8dba@gmail.com
WhatsApp : +65-94693551
Linkedin: https://www.linkedin.com/in/rajasekhar-amudala/