Home > PHP > Function > PostgreSQL > pg_lo_unlink()

pg_lo_unlink()

pg_lo_unlink - Delete a large object

Syntax

bool pg_lo_unlink (resource $connection, int $oid)

Arguments

  • connection - PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().
  • oid - The OID of the large object in the database.

Description

pg_lo_unlink() deletes a large object with the oid. Returns TRUE on success or FALSE on failure.

Version

PHP 4.2.0, 5

Return value

Returns TRUE on success or FALSE on failure.