pg_lo_import

pg_lo_import — Import a large object from a file

Synopsis

pg_lo_import conn filename

Description

pg_lo_import reads the specified file and places the contents into a new large object.

Arguments

conn

The handle of the connection.

filename

Specified the file from which to import the data.

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

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.