PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to PostgreSQL databases.
This extension defines a stream resource returned by PDO::pgsqlLOBOpen().
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
The constants below are defined by
this driver, and will only be available when the extension has been either
compiled into PHP or dynamically loaded at runtime. In addition, these
driver-specific constants should only be used if you are using this driver.
Using driver-specific attributes with another driver may result in
unexpected behaviour. PDO::getAttribute() may be used to
obtain the PDO::ATTR_DRIVER_NAME
attribute to check the
driver, if your code can run against multiple drivers.
Note:
bytea
fields are returned as streams.