Installing pg_squeeze
=====================

``pg_squeeze`` is supported on the same platforms as the Postgres
distribution you’re using. Support for ``pg_squeeze`` starts with
Postgres 12. For details, see:

-  `EDB Postgres Advanced Server Product Compatibility <https://www.enterprisedb.com/platform-compatibility#epas>`_ 

-  `PostgreSQL Product Compatibility <https://www.enterprisedb.com/resources/platform-compatibility#pg>`_ 

-  `EDB Postgres Extended Server Product Compatibility <https://www.enterprisedb.com/resources/platform-compatibility#epas_extended>`_ 

Installation
------------

Before you begin the installation process:

-  Install Postgres. See:

-  :ref:`Installing EDB Postgres Advanced Server <Installing pg_squeeze>` 

-  `Installing PostgreSQL <https://www.postgresql.org/download/>`_ 

-  :ref:`Installing EDB Postgres Extended Server <Installing pg_squeeze>` 

-  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 <https://www.enterprisedb.com/repos-downloads>`_  and follow the
instructions provided there.

Install the package
-------------------

The syntax for the package install command is:

.. code:: shell

   #  For SLES, CentOS, RHEL and its derivatives

   sudo <package-manager> -y install edb-<postgres><postgres_version>-pg-squeeze1

   #  For Debian and Ubuntu

   sudo <package-manager> -y install edb-<postgres><postgres_version>-pg-squeeze-1

Where:

-  ``<package-manager>`` is the package manager used with your operating
   system:

.. csv-table::
  :header: Package manager,Operating system
  :widths: 10,30
  :align: left
  :class: longtable

  dnf,RHEL 8/9 and derivatives
  yum,"RHEL 7 and derivatives, CentOS 7"
  zypper,SLES
  apt-get,Debian and derivatives

-  ``<postgres>`` is the distribution of Postgres you’re using:

.. csv-table::
  :header: Postgres distribution,Value
  :widths: 10,30
  :align: left
  :class: longtable

  PostgreSQL,pg
  EDB Postgres Advanced Server,as
  EDB Postgres Extended Server,postgresextended

-  ``<postgres_version>`` is the version of Postgres you’re using.

For example, to install pg_squeeze for EDB Postgres Advanced Server 15
on a RHEL 8 platform:

.. code:: shell

   sudo dnf -y install edb-as15-pg-squeeze1
