pg_lo_creat

pg_lo_creat — Create a large object

Synopsis

pg_lo_creat conn mode

Description

pg_lo_creat creates a large object.

Arguments

conn

The handle of the connection.

mode

The access mode for the large object. It can be any or'ing together of INV_READ and INV_WRITE. The or operator is |. For example:

[pg_lo_creat $conn "INV_READ|INV_WRITE"]

Return Value

The OID of the large object created.

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_creat.

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.