select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.3 / 7.2 / 7.1
Historical version. PostgreSQL 7.3 reached end of support in November 2007. See the current manual for supported releases.

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.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.