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.1 reached end of support in April 2006. See the current manual for supported releases.

open

Name

open -- opens a large object

Synopsis

open(mode)

Parameters

mode

open mode definition (integer).

Return Type

none

Exceptions

TypeError

Bad parameter type, or too many arguments.

IOError

Already opened object, or open error.

pg.error

Invalid connection.

Description

open() method opens a large object for reading/writing, in the same way than the UNIX open() function. The mode value can be obtained by OR-ing the constants defined in the pg module (INV_READ, INV_WRITE).

Report a documentation issue

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