pg_loexport

(PHP 4 )

pg_loexport -- Export a large object to file

Description

bool pg_loexport (int oid, string pathname [, resource connection])

The oid argument specifies oid of the large object to export and the pathname argument specifies the pathname of the file. It returns FALSE if an error occurred, TRUE otherwise.

To use the large object (lo) interface, it is necessary to enclose it within a transaction block.

See also pg_loimport().