php man page for pg_lo_unlink

Query: pg_lo_unlink

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PG_LO_UNLINK(3) 														   PG_LO_UNLINK(3)

pg_lo_unlink - Delete a large object

SYNOPSIS
bool pg_lo_unlink (resource $connection, int $oid)
DESCRIPTION
pg_lo_unlink(3) deletes a large object with the $oid. Returns TRUE on success or FALSE on failure. To use the large object interface, it is necessary to enclose it within a transaction block. Note This function used to be called pg_lounlink(3).
PARAMETERS
o $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(3) or pg_pconnect(3). o $oid - The $OID of the large object in the database.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 pg_lo_unlink(3) example <?php // OID of the large object to delete $doc_oid = 189762345; $database = pg_connect("dbname=jacarta"); pg_query($database, "begin"); pg_lo_unlink($database, $doc_oid); pg_query($database, "commit"); ?>
SEE ALSO
pg_lo_create(3), pg_lo_import(3). PHP Documentation Group PG_LO_UNLINK(3)
Related Man Pages
pg_lo_close(3) - php
pg_close(3) - php
pg_lo_open(3) - php
pg_lo_truncate(3) - php
pg_lo_unlink(3) - php
Similar Topics in the Unix Linux Community
database connection (unresolved sqlcxt)
connection doesn't work anymore
Encrypting DataBase Passwords
Function returns wrong values - solved
deleting dupes in a row