pg_lo_create
(PHP 4 >= 4.2.0)
pg_lo_create -- Create a large object
Description
int pg_lo_create ( resource connection)
pg_lo_create() creates a Large Object and returns the oid
of the large object. connection specifies a valid database
connection opened by pg_connect() or pg_pconnect(). PostgreSQL
access modes INV_READ, INV_WRITE, and INV_ARCHIVE are not
supported, the object is created always with both read and
write access. INV_ARCHIVE has been removed from PostgreSQL
itself (version 6.3 and above). It returns large object
oid, otherwise it returns FALSE if an error occurred.
To use the large object (lo) interface, it is necessary
to enclose it within a transaction block.
Note: This function used to be called pg_locreate().
pg_lo_export
(PHP 4 >= 4.2.0)
pg_lo_export -- Export a large object to file
Description
bool pg_lo_export ( [resource connection, int oid, string
pathname])
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.
Note: This function used to be called pg_loexport().
See also pg_lo_import().
|