This topic describes the components of PolarDB-Tools and how to download and install PolarDB-Tools.
Usage
PolarDB-Tools is a set of client tools for PolarDB. PolarDB-Tools is compatible with Linux operating systems, including Alibaba Cloud Linux, Rocky Linux, CentOS Stream, and CentOS. The following table describes the tools in PolarDB-Tools.
Tool | Description | Usage | Difference from the native tool |
psql | A tool used to connect to a PostgreSQL database | Used in the same manner as the native psql tool. For more information, see psql on the PostgreSQL official website. |
|
pg_dump | A tool used to back up a PostgreSQL database. You can use the pg_dump tool to back up a database in a cluster. | Used in the same manner as the native pg_dump tool. For more information, see pg_dump on the PostgreSQL official website. |
|
pg_restore | A tool used to restore a PostgreSQL database from backup files that are created by using pg_dump or pg_dumpall tool. | Used in the same manner as the native pg_restore tool. For more information, see pg_restore on the PostgreSQL official website. |
|
ecpg | An embedded SQL preprocessor for C programs. | Used in the same manner as the native ecpg tool. For more information, see ecpg on the PostgreSQL official website. |
|
pg_repack | The client used to reclaim tablespaces. | For more information, see pg_repack. |
|
Download and installation
Download the PolarDB-Tools installation package. The following table lists the download links for different operating system versions.
Operating system version
Processor architecture
PolarDB minor database engine version
pg_repack version
PolarDB-Tools version
PolarDB-Tools installation package
AliOS 8/
ALinux 3/
Anolis 8/
CentOS 8
X86
2.0.14.26.0
1.5.1-1
20241030
ARM
2.0.14.26.0
1.5.1-1
20241030
AliOS 7/
ALinux 2/
Anolis 7/
CentOS 7
X86
2.0.14.26.0
1.5.1-1
20241030
ARM
2.0.14.26.0
1.5.1-1
20241030
Run the following installation command.
yum install PolarDB-Tools-2.0.14.10.0-20230622222102.al8.x86_64.rpm
NoteReplace the sample name used in the preceding command with the name of the installation package that you download.
After the installation package is installed, the tools in PolarDB-Tools appear in the
/u01/polardb_pg_tools/bin/
directory of the system.