PHP Unconference Europe 2015

PostgreSQL Functions (PDO_PGSQL)

Introduction

PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to PostgreSQL databases.

Resource Types

This extension defines a stream resource returned by PDO::pgsqlLOBOpen().

Installation

Use --with-pdo-pgsql[=DIR] to install the PDO PostgreSQL extension, where the optional [=DIR] is the PostgreSQL base install directory, or the path to pg_config.

$ ./configure --with-pdo-pgsql

Table of Contents

add a note add a note

User Contributed Notes 1 note

up
0
S. Jalali
4 hours ago
It seems PGSQL should be installed prior to using this option. Please clarify by adding to this note whether PHP build will succeed or fail if that is not the case. Similar comment should be made either at a general level at the top or with each such specific "enable" or "with" option.
To Top