Установка

In order to enable PostgreSQL support, --with-pgsql[=DIR] is required when you compile PHP. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. If shared object module is available, PostgreSQL module may be loaded using extension directive in php.ini or dl() function.

Коментарии

Автор:
On a Windows server, configured with Apache, adding the following line to httpd.conf to load libpq.dll can save you a lot of time : 

LoadFile "C:/Program Files/PostgreSQL/8.4/bin/libpq.dll"

Note that you will have to change your folder accordingly to the installation path and version of PostgreSQL you have installed. Also note that having Apache and PostgreSQL on the same server for production environments is not recommended. 

Cheers,
Serjik
2009-08-28 10:54:48
http://php5.kiev.ua/manual/ru/pgsql.installation.html
Starting with PHP 7, on Ubuntu (i.e., 16+), you can run:

`sudo apt-get install php-pgsql`
2016-09-02 20:28:01
http://php5.kiev.ua/manual/ru/pgsql.installation.html

    Поддержать сайт на родительском проекте КГБ