pg_textsearch is supported for Postgres 17 and 18 only, across all three Postgres distributions. For platform and version compatibility details, see:
- PostgreSQL product compatibility
- EDB Postgres Advanced Server product compatibility
- EDB Postgres Extended Server product compatibility
Prerequisites
Before you begin the installation process:
Install Postgres. See:
Set up the repository.
Setting up the repository is a one-time task. If you've already set up your repository, you don't need to perform this step.
To set up the repository, go to EDB repositories and follow the instructions provided there.
Installing the package
The syntax for the package install command is:
# For SLES, CentOS, RHEL and its derivatives sudo <package-manager> -y install edb-<postgres><postgres_version>-pg-textsearch # For Debian and Ubuntu sudo apt-get -y install edb-<postgres><postgres_version>-pg-textsearch
Where:
<package-manager>is the package manager used with your operating system:Package manager Operating system dnf RHEL 8/9 and derivatives zypper SLES apt-get Debian and derivatives <postgres>is the distribution of Postgres you're using:Postgres distribution Value PostgreSQL pg EDB Postgres Advanced Server as EDB Postgres Extended Server postgresextended <postgres_version>is the version of Postgres you're using:17or18.
For example, to install pg_textsearch for EDB Postgres Advanced Server 18 on a RHEL 9 platform run:
sudo dnf -y install edb-as18-pg-textsearch