All Products
Search
Document Center

PolarDB:PolarDB-Tools

Last Updated:Oct 31, 2025

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.

  • This tool is adapted for PolarDB for PostgreSQL (Compatible with Oracle) and supports Oracle-compatible syntax. Using the community version might cause unexpected errors.

  • When you manage a PolarDB cluster, you can use the community version of psql to run simple SQL statements. Note that the community version of psql does not support creating stored procedures. If you use it to create a stored procedure, the SQL string might be unexpectedly truncated.

  • When you use the psql client, download the latest version of PolarDB-Tools. Newer versions are backward compatible.

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.

  • PolarDB supports data backups and redo log backups in the console. For more information, see Set a backup policy.

  • This tool is adapted for PolarDB for PostgreSQL (Compatible with Oracle) and supports Oracle-compatible syntax. If you use the community version, some objects might fail to be dumped.

  • When you use the pg_dump client, download the latest version of PolarDB-Tools. Newer versions are backward compatible.

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.

  • PolarDB supports two data restoration methods: point-in-time restore and restoration from a backup set (snapshot). You can use these methods to restore historical data to a new cluster. For more information, see Data restoration operations.

  • This tool is adapted for PolarDB for PostgreSQL (Compatible with Oracle) and supports Oracle-compatible syntax. If you use the community version, some objects might fail to be restored.

  • When you use the pg_restore client, download the latest version of PolarDB-Tools. Newer versions are backward compatible.

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.

  • This tool is adapted for PolarDB for PostgreSQL (Compatible with Oracle) and supports Oracle-compatible syntax. If you use the community version, some objects might fail to be transformed.

  • When you use the ecpg client, download the latest version of PolarDB-Tools. Newer versions are backward compatible.

Download and installation

  1. Download a PolarDB-Tools installation package from the following links:

    OS version

    Processor architecture

    PolarDB-Tools installation package

    • AliOS 8

    • Alibaba Cloud Linux 3

    Note

    glibc version: 2.32.

    x86

    PolarDB-Tools-2.0.14.33.0-20250523102322.al8.x86_64.rpm

    Arm

    PolarDB-Tools-2.0.14.33.0-20250523102322.al8.aarch64.rpm

    • Anolis 8

    • CentOS 8

    • Rocky Linux 8

    Note

    glibc version: 2.28.

    x86

    PolarDB-Tools-2.0.14.31.0-20250516002749.el8.x86_64.rpm

    Arm

    PolarDB-Tools-2.0.14.31.0-20250516002749.el8.aarch64.rpm

    • AliOS 7

    • Alibaba Cloud Linux 2

    • Anolis 7

    • CentOS 7

    Note

    glibc version: 2.17.

    x86

    PolarDB-Tools-2.0.14.33.0-20250523102322.alios7.x86_64.rpm

    Arm

    PolarDB-Tools-2.0.14.33.0-20250523102322.alios7.aarch64.rpm

  2. Run the following command to install the package.

    Note

    Replace 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.rpm

    After the installation is complete, the tools are located in the /u01/polardb_pg_tools/bin/ directory.