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.
Name
open -- opens a large object
Synopsis
open(mode)
Parameters
- mode
-
open mode definition (integer).
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).