pg_lo_open

pg_lo_open — Open a large object

Synopsis

pg_lo_open conn loid mode

Description

pg_lo_open opens a large object.

Arguments

conn

The handle of the connection.

loid

The OID of the large object.

mode

Specifies the access mode for the large object. Mode can be either r, w, or rw.

Return Value

A descriptor for use in later large-object commands.

A Tcl error will be thrown if an error occurs.

Notes

All large object manipulation must take place within an SQL transaction block.

This command uses or emulates the PostgreSQL libpq function lo_open.

SourceForge.net Logo

This version of the manual was produced for the Pgtcl-ng Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the Pgtcl-ng project downloads area.