How to install php-pgsql in CentOS/RHEL 10 (x86_64)

A PostgreSQL database module for PHP

License: PHP-3.01 Vendor: GetPageSpeed LLC http://www.php.net/

Install

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install php-pgsql

Description

The php-pgsql package add PostgreSQL database support to PHP. PostgreSQL is an object-relational database management system that supports almost all SQL constructs. PHP is an HTML-embedded scripting language. If you need back-end support for PostgreSQL, you should install this package in addition to the main php package.

Compatibility

This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

RPMs

Package Size Built Changes
php-pgsql-8.4.27-1.9.el10.gps.x86_64 86 KiB 2026-11-12 GetPageSpeed
- Built for GetPageSpeed repositories
php-pgsql-8.4.27-1.8.el10.gps.x86_64 86 KiB 2026-11-07 GetPageSpeed
- Built for GetPageSpeed repositories

Subscribe