All Products
Search
Document Center

PolarDB:PolarDB-Tools

Last Updated:Oct 31, 2024

This topic describes the components of PolarDB-Tools and describes how to download and install PolarDB-Tools.

Usage

PolarDB-Tools is a set of PolarDB client tools for all versions of Alibaba Cloud Linux, Rocky Linux, CentOS Stream, and CentOS. PolarTools consists of the following tools:

Note
  • For pg_repack, you must use the PolarDB version. For other tools such as psql, pg_dump, and pg_restore, you can use the community version.

  • If you need to execute only simple SQL statements for managing PolarDB clusters, you can use the community version psql. Note that the community version psql does not support creating stored procedures. If you attempt to create a stored procedure, the SQL statements are incorrectly truncated during the creation process.

  • For tools such as psql, pg_dump, and pg_restore, you can download the last versions for compatibility purpose.

  • For pg_repack, the client version must match the server version. Download the PolarDB-Tools installation package that matches the version of your PolarDB cluster.

Download and installation

  1. Download the PolarDB-Tools installation package by clicking one of the following links:

    PolarDB database engine

    Operating system version

    Processor architecture

    PolarDB revision version

    pg_repack version

    PolarDB-Tools version

    PolarDB-Tools installation package

    PostgreSQL 15

    AliOS 8/

    ALinux 3/

    Anolis 8/

    CentOS 8

    X86

    15.7.2.0

    1.5.1-1

    20240815

    PolarDB-Tools-2.0.15.2.0-20240805142651.al8.x86_64.rpm

    ARM

    15.7.2.0

    1.5.1-1

    20240815

    PolarDB-Tools-2.0.15.2.0-20240805142651.al8.aarch64.rpm

    AliOS 7/

    ALinux 2/

    Anolis 7/

    CentOS 7

    X86

    15.7.2.0

    1.5.1-1

    20240815

    PolarDB-Tools-2.0.15.2.0-20240805142651.alios7.x86_64.rpm

    ARM

    15.7.2.0

    1.5.1-1

    20240815

    PolarDB-Tools-2.0.15.2.0-20240805142651.alios7.aarch64.rpm

    PostgreSQL 14

    AliOS 8/

    ALinux 3/

    Anolis 8/

    CentOS 8

    X86

    14.13.25.0

    1.5.1-1

    20240930

    PolarDB-Tools-2.0.14.25.0-20240909152314.al8.x86_64.rpm

    14.12.24.0

    1.5.1-1

    20240830

    PolarDB-Tools-2.0.14.24.0-20240905213654.al8.x86_64.rpm

    ARM

    14.13.25.0

    1.5.1-1

    20240930

    PolarDB-Tools-2.0.14.25.0-20240909152314.al8.aarch64.rpm

    14.12.24.0

    1.5.1-1

    20240830

    PolarDB-Tools-2.0.14.24.0-20240905213654.al8.aarch64.rpm

    AliOS 7/

    ALinux 2/

    Anolis 7/

    CentOS 7

    X86

    14.13.25.0

    1.5.1-1

    20240930

    PolarDB-Tools-2.0.14.25.0-20240909152314.alios7.x86_64.rpm

    14.12.24.0

    1.5.1-1

    20240830

    PolarDB-Tools-2.0.14.24.0-20240905213654.alios7.x86_64.rpm

    ARM

    14.13.25.0

    1.5.1-1

    20240930

    PolarDB-Tools-2.0.14.25.0-20240909152314.alios7.aarch64.rpm

    14.12.24.0

    1.5.1-1

    20240830

    PolarDB-Tools-2.0.14.24.0-20240905213654.alios7.aarch64.rpm

  2. Run the following installation command:

    yum install PolarDB-Tools-2.0.14.10.0-20230622222102.al8.x86_64.rpm	
    Note

    Use the name of the installation package that you download to replace the sample name used in the preceding command.

    After the tool is installed, the tool appears in the /u01/polardb_pg_tools/bin/ directory of the system.