All Products
Search
Document Center

PolarDB:PolarDB-Tools

Last Updated:Mar 28, 2026

PolarDB-Tools is a set of PostgreSQL client tools packaged for Alibaba Cloud Linux, Rocky Linux, CentOS Stream, and all versions of CentOS. It includes four tools:

ToolDescription
psqlConnects to a PostgreSQL database interactively
pg_dumpCreates a logical backup of a single database in a cluster
pg_restoreRestores backup files created by pg_dump and pg_dumpall
ecpgPreprocesses embedded SQL in C source files

For detailed usage, see the official PostgreSQL documentation: psql, pg_dump, pg_restore, and ecpg.

The community version of psql does not support creating stored procedures. If you use it to create a stored procedure, the SQL string may be truncated. Always download the latest client version, which is backward compatible with older database engine versions.

Download and install PolarDB-Tools

Step 1: Download the installation package

Select the package that matches your PolarDB database engine version, operating system, and processor architecture.

PostgreSQL 17

Operating systemglibcArchitecturePackage
AliOS 8, Alibaba Cloud Linux 32.32x86PolarDB-Tools-2.0.17.4.0-20250924100614.al8.x86_64.rpm
AliOS 8, Alibaba Cloud Linux 32.32ARMPolarDB-Tools-2.0.17.4.0-20250924100614.al8.aarch64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17x86PolarDB-Tools-2.0.17.4.0-20250924100614.alios7.x86_64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17ARMPolarDB-Tools-2.0.17.4.0-20250924100614.alios7.aarch64.rpm

PostgreSQL 16

Operating systemglibcArchitecturePackage
AliOS 8, Alibaba Cloud Linux 32.32x86PolarDB-Tools-2.0.16.8.0-20250827095426.al8.x86_64.rpm
AliOS 8, Alibaba Cloud Linux 32.32ARMPolarDB-Tools-2.0.16.8.0-20250827095426.al8.aarch64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17x86PolarDB-Tools-2.0.16.8.0-20250827095426.alios7.x86_64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17ARMPolarDB-Tools-2.0.16.8.0-20250827095426.alios7.aarch64.rpm

PostgreSQL 15

Operating systemglibcArchitecturePackage
AliOS 8, Alibaba Cloud Linux 32.32x86PolarDB-Tools-2.0.15.6.0-20250904171715.al8.x86_64.rpm
AliOS 8, Alibaba Cloud Linux 32.32ARMPolarDB-Tools-2.0.15.6.0-20250904171715.al8.aarch64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17x86PolarDB-Tools-2.0.15.6.0-20250904171715.alios7.x86_64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17ARMPolarDB-Tools-2.0.15.6.0-20250904171715.alios7.aarch64.rpm

PostgreSQL 14

Operating systemglibcArchitecturePackage
AliOS 8, Alibaba Cloud Linux 32.32x86PolarDB-Tools-2.0.14.33.0-20250523102322.al8.x86_64.rpm
AliOS 8, Alibaba Cloud Linux 32.32ARMPolarDB-Tools-2.0.14.33.0-20250523102322.al8.aarch64.rpm
Anolis 8, CentOS 8, Rocky 82.28x86PolarDB-Tools-2.0.14.31.0-20250516002749.el8.x86_64.rpm
Anolis 8, CentOS 8, Rocky 82.28ARMPolarDB-Tools-2.0.14.31.0-20250516002749.el8.aarch64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17x86PolarDB-Tools-2.0.14.33.0-20250523102322.alios7.x86_64.rpm
AliOS 7, Alibaba Cloud Linux 2, Anolis 7, CentOS 72.17ARMPolarDB-Tools-2.0.14.33.0-20250523102322.alios7.aarch64.rpm

Step 2: Install the package

Run the following command, replacing <package-name> with the filename you downloaded:

yum install <package-name>

For example:

yum install PolarDB-Tools-2.0.14.30.0-20250301091754.alios7.x86_64.rpm

After installation, the tools are available in /u01/polardb_pg_tools/bin/.