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.

export

Name

export -- save the large object to file

Synopsis

export(filename)

Parameters

filename

The file to be created.

Return Type

none

Exceptions

TypeError

Bad argument type, or too many arguments.

IOError

Object is not closed, or export error.

pg.error

Invalid connection or invalid object.

Description

export() method allows to dump the content of a large object in a very simple way. The exported file is created on the host of the program, not the server host.