This page in other versions: Unsupported versions: 7.1 / 7.2 / 7.3

seek

Name

seek -- change current position in the large object

Synopsis

seek(offset, whence)

Parameters

offset

Position offset (integer).

whence

Positional parameter (integer).

Return Type

integer

New current position in the object.

Exceptions

TypeError

Bad parameter type, or too many arguments.

IOError

Object is not opened, or seek error.

pg.error

Invalid connection or invalid object.

Description

seek() method allows to move the cursor position in the large object. The whence parameter can be obtained by OR-ing the constants defined in the pg module (SEEK_SET, SEEK_CUR, SEEK_END).

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group