Unsupported versions: 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

loimport

Name

loimport -- imports a file to a PostgreSQL large object [LO]

Synopsis

loimport(filename)

Parameters

filename

The name of the file to be imported (string).

Return Type

pglarge

Object handling the PostgreSQL large object.

Exceptions

TypeError

Bad argument type or too many arguments.

pg.error

Invalid connection, or error during file import.

Description

loimport() method allows to create large objects in a very simple way. You just give the name of a file containing the data to be use.