SQL function lo_unlink is not documented - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject SQL function lo_unlink is not documented
Date
Msg-id 200104210107.f3L17HI66397@hub.org
Whole thread Raw
List pgsql-bugs
Michael Richards (michael@fastmail.ca) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
SQL function lo_unlink is not documented

Long Description
http://postgresql.readysetnet.com/users-lounge/docs/7.1/programmer/lo-funcs.html

Says:
There are two built-in registered functions, lo_import and lo_export which are convenient for use in SQL queries. Here
isan example of their use  

CREATE TABLE image (
    name            text,
    raster          oid
);

INSERT INTO image (name, raster)
    VALUES ('beautiful image', lo_import('/etc/motd'));

SELECT lo_export(image.raster, '/tmp/motd') from image
    WHERE name = 'beautiful image';

This should also document the lo_unlink function as being able to remove these BLOBs is also supported. See below.


Sample Code
urdr=# select lo_unlink(6816289);
 lo_unlink
-----------
         1
(1 row)

No file was uploaded with this report

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: lo_import does not check type before performing an import
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: lo_import does not check type before performing an import