This topic describes the components of PolarDB-Tools and explains how to download and install it.
Usage guide
PolarDB-Tools is a set of PolarDB client tools that is compatible with all versions of Alibaba Cloud Linux, Rocky Linux, CentOS Stream, and CentOS. It includes the following tools:
Tool name | Description | Usage | Differences from native tools |
psql | A client connection tool for PostgreSQL. | The usage is the same as the native psql tool. For more information, see the psql documentation on the official PostgreSQL website. |
|
pg_dump | A logical backup tool for PostgreSQL that is used to back up a single database in a cluster. | The usage is the same as the native pg_dump tool. For more information, see the pg_dump documentation on the official PostgreSQL website. |
|
pg_restore | A PostgreSQL tool used to restore backup files created by pg_dump and pg_dumpall. | The usage is the same as the native pg_restore tool. For more information, see the pg_restore documentation on the official PostgreSQL website. |
|
ecpg | An embedded SQL C preprocessor. | The usage is the same as the native ecpg tool. For more information, see the ecpg documentation on the official PostgreSQL website. |
|
Download and installation
Download a PolarDB-Tools installation package from the following links:
OS version
Processor architecture
PolarDB-Tools installation package
AliOS 8
Alibaba Cloud Linux 3
Noteglibc version: 2.32.
x86
Arm
Anolis 8
CentOS 8
Rocky Linux 8
Noteglibc version: 2.28.
x86
Arm
AliOS 7
Alibaba Cloud Linux 2
Anolis 7
CentOS 7
Noteglibc version: 2.17.
x86
Arm
Run the following command to install the package.
NoteReplace the package name with the actual name of the package that you downloaded.
yum install PolarDB-Tools-2.0.14.30.0-20250301091754.alios7.x86_64.rpmAfter the installation is complete, the tools are located in the
/u01/polardb_pg_tools/bin/directory.